Merge pull request #65 from Fox-McCloud/Movement-Speed

Movement speed
This commit is contained in:
Fox-McCloud
2014-12-12 10:26:04 -05:00
5 changed files with 17 additions and 9 deletions
@@ -1,5 +1,7 @@
/mob/living/carbon/human/movement_delay()
var/tally = 0
if(status_flags & GOTTAGOFAST)
tally -= 1
if(species && species.flags & IS_SLOW)
tally = 5
@@ -9,10 +11,6 @@
if(embedded_flag)
handle_embedded_objects() //Moving with objects stuck in you can cause bad times.
if(reagents.has_reagent("hyperzine")) return -1
if(reagents.has_reagent("nuka_cola")) return -1
if((M_RUN in mutations)) return -1
var/health_deficiency = (100 - health + staminaloss)
@@ -113,10 +113,8 @@
/mob/living/carbon/monkey/movement_delay()
var/tally = 0
if(reagents)
if(reagents.has_reagent("hyperzine")) return -1
if(reagents.has_reagent("nuka_cola")) return -1
if(status_flags & GOTTAGOFAST)
tally -= 1
var/health_deficiency = (100 - health)
if(health_deficiency >= 45) tally += (health_deficiency / 25)
@@ -391,11 +391,19 @@ datum
del(A)
update_total()
my_atom.on_reagent_change()
check_gofast(my_atom)
return 0
return 1
check_gofast(var/mob/M)
if(istype(M, /mob))
if(M.reagents.has_reagent("hyperzine")||M.reagents.has_reagent("nuka_cola"))
return 1
else
M.status_flags &= ~GOTTAGOFAST
update_total()
total_volume = 0
for(var/datum/reagent/R in reagent_list)
+4 -1
View File
@@ -1948,7 +1948,9 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(prob(5)) M.emote(pick("twitch","blink_r","shiver"))
..()
M.status_flags |= GOTTAGOFAST
holder.remove_reagent(src.id, 0.5 * REAGENTS_METABOLISM)
// ..()
return
cryoxadone
@@ -3219,6 +3221,7 @@ datum
M.druggy = max(M.druggy, 30)
M.dizziness +=5
M.drowsyness = 0
M.status_flags |= GOTTAGOFAST
..()
return
+1
View File
@@ -498,6 +498,7 @@ var/list/global_mutations = list() // list of hidden mutation things
#define CANPUSH 8
#define LEAPING 16
#define PASSEMOTES 32 //Mob has a cortical borer or holders inside of it that need to see emotes.
#define GOTTAGOFAST 64
#define GODMODE 4096
#define FAKEDEATH 8192 //Replaces stuff like changeling.changeling_fakedeath
#define DISFIGURED 16384 //I'll probably move this elsewhere if I ever get wround to writing a bitflag mob-damage system