Skip to content

Commit

Permalink
Fixes mech ballistic shields not showing (#8358)
Browse files Browse the repository at this point in the history
* hotfix2

* fix
  • Loading branch information
MLGTASTICa authored Nov 17, 2023
1 parent 79a177b commit 4957f05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/mechs/equipment/combat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,15 @@

/obj/item/mech_equipment/shield_generator/ballistic/installed(mob/living/exosuit/_owner, hardpoint)
. = ..()
if(!(visual_bluff in _owner.vis_contents))
_owner.vis_contents.Add(visual_bluff)
visual_bluff.icon_state = "mech_shield_[hardpoint]"
updateVisualBluff(_owner.dir)

/obj/item/mech_equipment/shield_generator/ballistic/uninstalled()
owner.vis_contents.Remove(visual_bluff)
. = ..()

// 66% efficient when deployed
/obj/item/mech_equipment/shield_generator/ballistic/getEffectiveness()
return on ? 0.66 : 0
Expand Down

0 comments on commit 4957f05

Please sign in to comment.