Skip to content

Commit

Permalink
Remakes a pr I already merged because github is fucked (#22547)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwertytoforty authored Sep 25, 2023
1 parent ed11dad commit 98f15e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/turfs/simulated/floor/asteroid_floors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ GLOBAL_LIST_INIT(megafauna_spawn_list, list(/mob/living/simple_animal/hostile/me
if(DEADLY_DEEPROCK)
var/tempradius = rand(10, 15)
var/probmodifer = 43 * tempradius //Yes this is a magic number, it is a magic number that works well.
for(var/turf/NT in circleviewturfs(T, tempradius))
for(var/turf/NT in circlerangeturfs(T, tempradius))
var/distance = (max(get_dist(T, NT), 1)) //Get dist throws -1 if same turf
if(prob(min(probmodifer / distance, 100)))
if((ismineralturf(NT) || istype(NT, /turf/simulated/floor/plating/asteroid)) && !istype(NT.loc, /area/ruin)) //No spawning on lava / other ruins
Expand All @@ -309,7 +309,7 @@ GLOBAL_LIST_INIT(megafauna_spawn_list, list(/mob/living/simple_animal/hostile/me
var/turf/oasis_lake = pickweight(list(/turf/simulated/floor/plating/lava/smooth/lava_land_surface = 4, /turf/simulated/floor/plating/lava/smooth/lava_land_surface/plasma = 4, /turf/simulated/floor/chasm/straight_down/lava_land_surface = 4, /turf/simulated/floor/plating/lava/smooth/mapping_lava = 6, /turf/simulated/floor/beach/away/water/lavaland_air = 1, /turf/simulated/floor/plating/asteroid = 1))
if(oasis_lake == /turf/simulated/floor/plating/asteroid)
new /obj/effect/spawner/oasisrock(T, tempradius)
for(var/turf/oasis in circleviewturfs(T, tempradius))
for(var/turf/oasis in circlerangeturfs(T, tempradius))
if(istype(oasis.loc, /area/ruin))
continue
oasis.ChangeTurf(oasis_lake, ignore_air = TRUE)
Expand Down

0 comments on commit 98f15e8

Please sign in to comment.