mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-27 14:46:16 +01:00
Gravity tweak
Moved the floating function to life proc. I don't get spammed to it works.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user