Merge pull request #11830 from Emanthealmighty/AIchange

AI can now change its intent
This commit is contained in:
variableundefined
2019-08-12 23:08:58 +08:00
committed by GitHub
5 changed files with 18 additions and 2 deletions
+7 -1
View File
@@ -256,4 +256,10 @@
//Add multicamera camera
using = new /obj/screen/ai/add_multicam()
using.screen_loc = ui_ai_add_multicam
static_inventory += using
static_inventory += using
//Intent
using = new /obj/screen/act_intent/robot/AI()
using.icon_state = mymob.a_intent
static_inventory += using
action_intent = using
+3
View File
@@ -95,6 +95,9 @@
icon = 'icons/mob/screen_robot.dmi'
screen_loc = ui_borg_intents
/obj/screen/act_intent/robot/AI
screen_loc = "EAST-1:32,SOUTH:70"
/obj/screen/mov_intent
name = "run/walk toggle"
icon_state = "running"
+6
View File
@@ -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 ..()
+1 -1
View File
@@ -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