m_intent now uses defines

This commit is contained in:
Mervill
2016-12-03 00:25:44 -08:00
parent 96c93f6b38
commit 481cc07dcf
14 changed files with 24 additions and 22 deletions
@@ -59,7 +59,7 @@ var/const/SLIDE_ICE = 8
nutrition = NUTRITION_LEVEL_FED - 1 //just less than feeling vigorous
else if(nutrition && stat != DEAD)
nutrition -= HUNGER_FACTOR/10
if(m_intent == "run")
if(m_intent == MOVE_INTENT_RUN)
nutrition -= HUNGER_FACTOR/10
if((disabilities & FAT) && m_intent == "run" && bodytemperature <= 360)
if((disabilities & FAT) && m_intent == MOVE_INTENT_RUN && bodytemperature <= 360)
bodytemperature += 2
+2 -2
View File
@@ -447,11 +447,11 @@
. += config.run_speed
else
switch(m_intent)
if("run")
if(MOVE_INTENT_RUN)
if(drowsyness > 0)
. += 6
. += config.run_speed
if("walk")
if(MOVE_INTENT_WALK)
. += config.walk_speed
/mob/living/proc/makeTrail(turf/T)
+2 -2
View File
@@ -73,7 +73,7 @@
var/weakened = 0
var/losebreath = 0//Carbon
var/a_intent = "help"//Living
var/m_intent = "run"//Living
var/m_intent = MOVE_INTENT_RUN//Living
var/lastKnownIP = null
var/atom/movable/buckled = null//Living
@@ -144,4 +144,4 @@
var/resize = 1 //Badminnery resize
var/list/observers = null //The list of people observing this mob.
var/list/observers = null //The list of people observing this mob.