Skip to content

Commit

Permalink
Fix Janky Bugs from putting ego armors on other people (#2558)
Browse files Browse the repository at this point in the history
WEAR SOME FUCKING CLOTHES
  • Loading branch information
scionalu authored Nov 18, 2024
1 parent ece2dfe commit 66b51ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/clothing/suits/ego_gear/_ego_gear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
if(slot_flags & slot) // Equipped to right slot, not just in hands
if(!CanUseEgo(H))
return FALSE
if(equip_slowdown > 0)
if(equip_slowdown > 0 && (M == equipper || !equipper))
if(!do_after(H, equip_slowdown, target = H))
return FALSE
return ..()
Expand Down
7 changes: 6 additions & 1 deletion code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,12 @@
to_chat(src, "<span class='notice'>You try to put [what] on [who]...</span>")
who.log_message("[key_name(who)] is having [what] put on them by [key_name(src)]", LOG_ATTACK, color="red")
log_message("[key_name(who)] is having [what] put on them by [key_name(src)]", LOG_ATTACK, color="red", log_globally=FALSE)
if(do_mob(src, who, what.equip_delay_other))

var/equip_delay = what.equip_delay_other
if(istype(what,/obj/item/clothing/suit/armor/ego_gear))
var/obj/item/clothing/suit/armor/ego_gear/EGO = what
equip_delay = max(EGO.equip_delay_other, EGO.equip_slowdown) //Preventing 0 delay on some ego suits
if(do_mob(src, who, equip_delay))
if(what && Adjacent(who) && what.mob_can_equip(who, src, final_where, TRUE, TRUE))
if(temporarilyRemoveItemFromInventory(what))
if(where_list)
Expand Down

0 comments on commit 66b51ac

Please sign in to comment.