Basic Human AI (#15172)

* Adds a basic NPC AI for humans, capable of feeding itself when hungry and clothing itself.

* Does more stuff.

* Adds some more stuff.

* Forgot this.
This commit is contained in:
Shadowmech88
2017-06-17 07:35:19 -05:00
committed by Skullyton
parent c3f57ba687
commit d52ec77972
13 changed files with 376 additions and 1 deletions

View File

@@ -6,6 +6,10 @@
var/mob/living/M=container.holder
//testing("Got command: \[[message_type]\]: [json_encode(args)]")
switch(message_type)
if(COMSIG_CLICKON)
var/atom/A = args["target"]
M.ClickOn(A)
if(COMSIG_MOVE) // list("loc"=turf)
// list("dir"=NORTH)
if("loc" in args)
@@ -16,6 +20,9 @@
// walk(M, get_dir(src,M), MISSILE_SPEED)
walk(M, args["dir"], walk_delay)
if(COMSIG_STEP)
step(M, args["dir"], walk_delay)
if(COMSIG_ADJUST_BODYTEMP) // list("temp"=TEMP_IN_KELVIN)
M.bodytemperature += args["temp"]