mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] Fixes space drift, renames has_gravity() (#9154)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -120,9 +120,9 @@
|
||||
if(I.item_flags & ABSTRACT)
|
||||
return
|
||||
//Annoyingly, our flight code doesn't set the movement_type, nor do we have a define for it. So I'm not adding it yet.
|
||||
//if(arrived.movement_type & (FLYING|FLOATING) || !arrived.has_gravity())
|
||||
//if(arrived.movement_type & (FLYING|FLOATING) || !arrived.get_gravity())
|
||||
*/
|
||||
if(!arrived.has_gravity())
|
||||
if(!arrived.get_gravity())
|
||||
return
|
||||
if(ismob(arrived) && !arrived.density) // Prevents 10 overlapping mice from making an unholy sound while moving
|
||||
return
|
||||
@@ -177,4 +177,4 @@
|
||||
SIGNAL_HANDLER
|
||||
|
||||
qdel(src)
|
||||
*/
|
||||
*/
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
if(steps % 2)
|
||||
return
|
||||
|
||||
if(steps != 0 && !has_gravity(source)) // don't need to step as often when you hop around
|
||||
if(steps != 0 && !get_gravity(source)) // don't need to step as often when you hop around
|
||||
return
|
||||
|
||||
. = list(
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
|
||||
if(source.buckled || source.lying || source.throwing || source.is_incorporeal())
|
||||
return
|
||||
if(!has_gravity(source) && prob(75))
|
||||
if(!get_gravity(source) && prob(75))
|
||||
return
|
||||
|
||||
playsound(source.loc, S, volume, FALSE, preference = /datum/preference/toggle/digestion_noises)
|
||||
|
||||
Reference in New Issue
Block a user