Skip to content

Commit

Permalink
Drill anti cheese measure
Browse files Browse the repository at this point in the history
Also buffed ore output a bit
  • Loading branch information
BogCreature committed Nov 17, 2023
1 parent 0946008 commit b26494c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions code/datums/components/spawner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@
spawn_multiplier = clamp(spawn_multiplier, 1, max_mobs - spawned_mobs.len)
for(spawn_multiplier, spawn_multiplier > 0, spawn_multiplier--)
if(spawn_distance_max > 1)
spot = pick(turf_peel(spawn_distance_max, spawn_distance_min, P.loc, view_based = TRUE))
if(!spot)
spot = pick(circlerangeturfs(P.loc, spawn_distance_max))
var/origin = spot
var/list/peel = turf_peel(spawn_distance_max, spawn_distance_min, origin, view_based = TRUE)
if(peel.len>0)
spot = pick(peel)
else
spot = pick(circleviewturfs(origin, spawn_distance_max))
var/chosen_mob_type = pickweight(mob_types)
var/mob/living/simple_animal/L = new chosen_mob_type(spot)
L.flags_1 |= (P.flags_1 & ADMIN_SPAWNED_1)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mining/ore_veins.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ GLOBAL_LIST_EMPTY(ore_veins)
for(class, class>0, class--)
var/picked
picked = pick(vein_contents)
new picked(pick(get_adjacent_open_turfs(current)),round(rand(10,15)*multiplier))
new picked(pick(get_adjacent_open_turfs(current)),round(rand(15,20)*multiplier))

/obj/structure/vein/proc/destroy_effect()
playsound(loc,'sound/effects/explosionfar.ogg', 200, TRUE)
Expand Down

0 comments on commit b26494c

Please sign in to comment.