Skip to content

Commit

Permalink
hotfix2 (#8357)
Browse files Browse the repository at this point in the history
  • Loading branch information
MLGTASTICa authored Nov 10, 2023
1 parent 56f7c88 commit 79a177b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions code/modules/mechs/equipment/combat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@

/obj/item/mech_equipment/shield_generator/proc/updateVisualBluff(targetDir)
visual_bluff.dir = targetDir
if(visual_bluff.dir == NORTH)
if(targetDir == NORTH)
visual_bluff.layer = MECH_UNDER_LAYER
else
visual_bluff.layer = MECH_ABOVE_LAYER
Expand Down Expand Up @@ -927,7 +927,7 @@
playsound(get_turf(src), 'sound/weapons/shield/shieldblock.ogg', 50, 8)
return damages

/obj/item/mech_equipment/shield_generator/updateVisualBluff(targetDir)
/obj/item/mech_equipment/shield_generator/ballistic/updateVisualBluff(targetDir)
visual_bluff.dir = targetDir
switch(get_hardpoint())
if(HARDPOINT_RIGHT_HAND)
Expand Down
8 changes: 3 additions & 5 deletions code/modules/mechs/mech.dm
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,9 @@
. = ..()
if(.)
update_pilots()
var/obj/item/mech_equipment/shield_generator/gen = getShield()
// runtimes for ballistic
if(gen && gen.visual_bluff)
gen.updateVisualBluff(dir)

for(var/obj/item/mech_equipment/shield_generator/gen in contents)
if(gen && gen.visual_bluff)
gen.updateVisualBluff(dir)

/mob/living/exosuit/proc/return_temperature()
return bodytemperature
Expand Down
Binary file modified icons/mechs/mech_weapon_overlays.dmi
Binary file not shown.

0 comments on commit 79a177b

Please sign in to comment.