mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Merge pull request #11830 from Emanthealmighty/AIchange
AI can now change its intent
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/mob/living/silicon/ai/key_down(_key, client/user)
|
||||
switch(_key)
|
||||
if("4")
|
||||
a_intent_change(INTENT_HOTKEY_LEFT)
|
||||
return
|
||||
return ..()
|
||||
@@ -369,7 +369,7 @@ var/list/intents = list(INTENT_HELP,INTENT_DISARM,INTENT_GRAB,INTENT_HARM)
|
||||
if(hud_used && hud_used.action_intent)
|
||||
hud_used.action_intent.icon_state = "[a_intent]"
|
||||
|
||||
else if(isrobot(src) || islarva(src) || isanimal(src))
|
||||
else if(isrobot(src) || islarva(src) || isanimal(src) || isAI(src))
|
||||
switch(input)
|
||||
if(INTENT_HELP)
|
||||
a_intent = INTENT_HELP
|
||||
|
||||
Reference in New Issue
Block a user