forgot unscrew updating, adds appearance updating to stabilized yellow slime extract

This commit is contained in:
Cognition
2021-08-28 20:25:43 -07:00
parent fc2e101402
commit a03abc5658
2 changed files with 5 additions and 0 deletions

View File

@@ -104,6 +104,7 @@
if(anchored && !charging)
if(default_deconstruction_screwdriver(user, "recharger", "recharger", G))
update_appearance()
return
if(panel_open && G.tool_behaviour == TOOL_CROWBAR)

View File

@@ -573,6 +573,10 @@
if(batteries.len)
var/obj/item/stock_parts/cell/ToCharge = pick(batteries)
ToCharge.charge += min(ToCharge.maxcharge - ToCharge.charge, ToCharge.maxcharge/10) //10% of the cell, or to maximum.
ToCharge.update_appearance() //make sure the cell gets their appearance updated.
var/atom/l = ToCharge.loc
if(isgun(l)) //updates the gun appearance as well if the cell is inside one.
l.update_appearance()
to_chat(owner, "<span class='notice'>[linked_extract] discharges some energy into a device you have.</span>")
return ..()