Resolves some specific object repair behaviours not being acknowledged by duct tape (#90817)

## About The Pull Request

When duct tape repairs mechs, windows or clothing, it properly updates
icons and other effects that normally occur when repaired.

## Why It's Good For The Game

It ends up creating some weird interactions due to directly repairing
the objects integrity.

## Changelog
🆑
fix: Duct tape properly updates the various icons and visuals of mechs,
windows and clothing that it repairs.
/🆑
This commit is contained in:
necromanceranne
2025-04-25 15:36:45 +00:00
committed by GitHub
parent fdad28e19d
commit 6867da7943
3 changed files with 16 additions and 6 deletions
+5 -2
View File
@@ -213,8 +213,7 @@
return FALSE
to_chat(user, span_notice("You begin repairing [src]..."))
if(tool.use_tool(src, user, 4 SECONDS, volume = 50))
atom_integrity = max_integrity
update_nearby_icons()
repair_damage(max_integrity)
to_chat(user, span_notice("You repair [src]."))
return ITEM_INTERACT_SUCCESS
@@ -324,6 +323,10 @@
if(.) //received damage
update_nearby_icons()
/obj/structure/window/repair_damage(amount)
. = ..()
update_nearby_icons()
/obj/structure/window/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)