Power Cell Code Cleanup

This commit is contained in:
Fox McCloud
2018-05-02 19:35:18 -04:00
parent 31a2687fb6
commit 8bd042240f
17 changed files with 314 additions and 296 deletions
@@ -146,7 +146,7 @@
wrapped = A.cell
A.cell.add_fingerprint(user)
A.cell.updateicon()
A.cell.update_icon()
A.cell.forceMove(src)
A.cell = null
@@ -42,7 +42,7 @@
if(opened && !wiresexposed && !issilicon(user))
if(cell)
cell.updateicon()
cell.update_icon()
cell.add_fingerprint(user)
user.put_in_active_hand(cell)
to_chat(user, "<span class='notice'>You remove \the [cell].</span>")
@@ -188,7 +188,7 @@
visible_message("[usr] switches [on ? "on" : "off"] [src].")
if("cellremove")
if(open && cell && !usr.get_active_hand())
cell.updateicon()
cell.update_icon()
usr.put_in_active_hand(cell)
cell.add_fingerprint(usr)
cell = null