Skip to content

Commit

Permalink
Линтер
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Oct 17, 2024
1 parent 99feabc commit 28c8c4f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
var/list/positions = list("center", "side", "front")

// Initialize shifts using the provided shift_data list or default to zero
for (var/body_part in body_parts)
for(var/body_part in body_parts)
// Create a nested list for each body part if it doesn't exist
shift_data[body_part] = shift_list[body_part] ? shift_list[body_part] : list()

for (var/position in positions)
for(var/position in positions)
// Create a nested list for each position within the body part
shift_data[body_part][position] = shift_list[body_part][position] ? shift_list[body_part][position] : list()

Expand Down Expand Up @@ -54,7 +54,7 @@
var/flip = (dir == WEST || dir == SOUTH) ? -1 : 1

// Update shift values based on direction
for (var/body_part in body_parts)
for(var/body_part in body_parts)
var/x_shift_key = "shift_x"
var/y_shift_key = "shift_y"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
return signal_result

/datum/component/gadom_cargo/proc/try_load_cargo(datum/component_holder, mob/user, atom/movable/AM)
if((user.a_intent == "grab"))
if(user.a_intent == "grab")
if(user.incapacitated() || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || get_dist(user, AM) > 1)
return
if(!istype(AM))
Expand Down
42 changes: 21 additions & 21 deletions modular_ss220/species/serpentids/code/mob/serpentids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -118,27 +118,27 @@
var/can_stealth = TRUE
var/gene_lastcall = 0
var/list/shift_data = list(
"head" = list(
"center" = list("x" = 0, "y" = 10),
"side" = list("x" = 3, "y" = 0),
"front" = list("x" = 0, "y" = 0)
),
"inhand" = list(
"center" = list("x" = 0, "y" = 3),
"side" = list("x" = 0, "y" = 0),
"front" = list("x" = 0, "y" = 0)
),
"belt" = list(
"center" = list("x" = 0, "y" = 7),
"side" = list("x" = 5, "y" = 0),
"front" = list("x" = 0, "y" = 0)
),
"back" = list(
"center" = list("x" = 0, "y" = 7),
"side" = list("x" = 0, "y" = 0),
"front" = list("x" = 0, "y" = 0)
)
)
"head" = list(
"center" = list("x" = 0, "y" = 10),
"side" = list("x" = 3, "y" = 0),
"front" = list("x" = 0, "y" = 0)
),
"inhand" = list(
"center" = list("x" = 0, "y" = 3),
"side" = list("x" = 0, "y" = 0),
"front" = list("x" = 0, "y" = 0)
),
"belt" = list(
"center" = list("x" = 0, "y" = 7),
"side" = list("x" = 5, "y" = 0),
"front" = list("x" = 0, "y" = 0)
),
"back" = list(
"center" = list("x" = 0, "y" = 7),
"side" = list("x" = 0, "y" = 0),
"front" = list("x" = 0, "y" = 0)
)
)


/datum/species/serpentid/handle_reagents(mob/living/carbon/human/H, datum/reagent/R)
Expand Down

0 comments on commit 28c8c4f

Please sign in to comment.