mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user