Airlock usr (#46188)

This commit is contained in:
nemvar
2019-09-01 16:12:10 +02:00
committed by AnturK
parent 5e75f9c659
commit 1949f18dcb

View File

@@ -94,20 +94,16 @@
if(WIRE_POWER1, WIRE_POWER2) // Cut to loose power, repair all to gain power. if(WIRE_POWER1, WIRE_POWER2) // Cut to loose power, repair all to gain power.
if(mend && !is_cut(WIRE_POWER1) && !is_cut(WIRE_POWER2)) if(mend && !is_cut(WIRE_POWER1) && !is_cut(WIRE_POWER2))
A.regainMainPower() A.regainMainPower()
if(usr)
A.shock(usr, 50)
else else
A.loseMainPower() A.loseMainPower()
if(usr) if(isliving(usr))
A.shock(usr, 50) A.shock(usr, 50)
if(WIRE_BACKUP1, WIRE_BACKUP2) // Cut to loose backup power, repair all to gain backup power. if(WIRE_BACKUP1, WIRE_BACKUP2) // Cut to loose backup power, repair all to gain backup power.
if(mend && !is_cut(WIRE_BACKUP1) && !is_cut(WIRE_BACKUP2)) if(mend && !is_cut(WIRE_BACKUP1) && !is_cut(WIRE_BACKUP2))
A.regainBackupPower() A.regainBackupPower()
if(usr)
A.shock(usr, 50)
else else
A.loseBackupPower() A.loseBackupPower()
if(usr) if(isliving(usr))
A.shock(usr, 50) A.shock(usr, 50)
if(WIRE_BOLTS) // Cut to drop bolts, mend does nothing. if(WIRE_BOLTS) // Cut to drop bolts, mend does nothing.
if(!mend) if(!mend)
@@ -140,5 +136,5 @@
A.lights = mend A.lights = mend
A.update_icon() A.update_icon()
if(WIRE_ZAP1, WIRE_ZAP2) // Ouch. if(WIRE_ZAP1, WIRE_ZAP2) // Ouch.
if(usr) if(isliving(usr))
A.shock(usr, 50) A.shock(usr, 50)