mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
Airlock usr (#46188)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user