Robot Code Overhaul (#9304)

This commit is contained in:
Geeves
2020-07-07 18:58:27 +02:00
committed by GitHub
parent 02451ba8de
commit 6616048bcc
24 changed files with 200 additions and 184 deletions
+4 -4
View File
@@ -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
View File
@@ -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