Gravity tweak

Moved the floating function to life proc.  I don't get spammed to it
works.
This commit is contained in:
SoundScopes
2014-10-05 03:44:14 +01:00
parent 8651d53470
commit ccee15005c
3 changed files with 6 additions and 5 deletions
+4
View File
@@ -95,6 +95,10 @@
/mob/proc/Life()
// if(organStructure)
// organStructure.ProcessOrgans()
if(floating && mob_has_gravity(loc) && buckled)
float(0)
else if(!floating && !mob_has_gravity(loc) && !buckled)
float(1)
return
-5
View File
@@ -215,11 +215,6 @@
if(!mob.lastarea)
mob.lastarea = get_area(mob.loc)
if(mob.floating && mob.mob_has_gravity(mob.loc))
mob.float(0)
else if(!mob.floating && !mob.mob_has_gravity(mob.loc))
mob.float(1)
if((istype(mob.loc, /turf/space)) || (mob.lastarea.has_gravity == 0))
if(!mob.Process_Spacemove(0)) return 0