File tree Expand file tree Collapse file tree 3 files changed +1
-125
lines changed
Expand file tree Collapse file tree 3 files changed +1
-125
lines changed Original file line number Diff line number Diff line change @@ -412,30 +412,13 @@ var/global/list/mob/living/forced_ambiance_list = new
412412 sound_to (L, sound(null , channel = sound_channels. lobby_channel))
413413 forced_ambiance_list -= L
414414
415- / area / proc / gravitychange(gravitystate = 0 , skip_thunk = FALSE )
415+ / area / proc / gravitychange(gravitystate = 0 )
416416 has_gravity = gravitystate
417- if (skip_thunk)
418- // For mass-area-gravity-modification where it might be more efficient to loop over mobs manually after.
419- return
420417 for (var /mob /M in src )
421418 if (has_gravity)
422419 thunk (M)
423420 M. update_floating()
424421
425- / proc / mass_gravitychange( list / areas_to_change, gravitystate = 0 )
426- var /list /lookup_list = new / list (length(areas_to_change))
427- for (var /area /changing_area in areas_to_change)
428- changing_area. gravitychange(gravitystate = gravitystate, skip_thunk = TRUE )
429- lookup_list[changing_area] = TRUE // for faster membership checks
430- // thunks do literally nothing for non-human mobs, but we'll be future-proof and do all living mobs
431- for (var /mob /living/victim in global . living_mob_list_)
432- var /area /victim_area = get_area(victim)
433- if (! lookup_list[victim_area])
434- continue
435- if (victim_area. has_gravity)
436- victim_area. thunk(victim)
437- victim. update_floating()
438-
439422/ area / proc / thunk( mob / mob )
440423 if (isspaceturf(get_turf(mob))) // Can't fall onto nothing.
441424 return
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 34293429#include "code\modules\power\cable.dm"
34303430#include "code\modules\power\cell.dm"
34313431#include "code\modules\power\debug_items.dm"
3432- #include "code\modules\power\gravitygenerator.dm"
34333432#include "code\modules\power\heavycable.dm"
34343433#include "code\modules\power\port_gen.dm"
34353434#include "code\modules\power\power.dm"
You can’t perform that action at this time.
0 commit comments