mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 14:31:59 +01:00
Robot Code Overhaul (#9304)
This commit is contained in:
@@ -195,7 +195,7 @@
|
||||
I.attack_self(owner)
|
||||
if(3)
|
||||
var/prev_intent = owner.a_intent
|
||||
owner.a_intent = I_HURT
|
||||
owner.set_intent(I_HURT)
|
||||
|
||||
var/list/mob/living/targets = list()
|
||||
var/range = 1
|
||||
@@ -211,13 +211,13 @@
|
||||
if(LAZYLEN(targets))
|
||||
to_chat(owner, "<span class='warning'>Your arm spasms!</span>")
|
||||
owner.ClickOn(pick(targets))
|
||||
owner.a_intent = prev_intent
|
||||
owner.set_intent(prev_intent)
|
||||
if(4)
|
||||
var/prev_intent = owner.a_intent
|
||||
owner.a_intent = I_HURT
|
||||
owner.set_intent(I_HURT)
|
||||
to_chat(owner, "<span class='warning'>Your arm spasms!</span>")
|
||||
owner.ClickOn(owner)
|
||||
owner.a_intent = prev_intent
|
||||
owner.set_intent(prev_intent)
|
||||
if(5)
|
||||
if(owner.incapacitated())
|
||||
return
|
||||
|
||||
+2
-2
@@ -382,7 +382,7 @@
|
||||
if (istype(R))
|
||||
R.emagged = 0
|
||||
if (R.activated(R.module.emag))
|
||||
R.module_active = null
|
||||
R.set_module_active(null)
|
||||
if(R.module_state_1 == R.module.emag)
|
||||
R.module_state_1 = null
|
||||
R.contents -= R.module.emag
|
||||
@@ -401,7 +401,7 @@
|
||||
R.emagged = 0
|
||||
if (R.module)
|
||||
if (R.activated(R.module.emag))
|
||||
R.module_active = null
|
||||
R.set_module_active(null)
|
||||
if(R.module_state_1 == R.module.emag)
|
||||
R.module_state_1 = null
|
||||
R.contents -= R.module.emag
|
||||
|
||||
Reference in New Issue
Block a user