Skip to content

Commit

Permalink
Makes asteroids not just replace every turf when generating ores (Bee…
Browse files Browse the repository at this point in the history
  • Loading branch information
Bokkiewokkie authored and IndusRobot committed Dec 16, 2024
1 parent 44c3e4c commit 6a6e3f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nsv13/code/modules/mining/asteroid.dm
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ GLOBAL_LIST_EMPTY(asteroid_spawn_markers) //handles mining asteroids, kind of s
center = T
else
center = locate(T.x+(width/2), T.y+(height/2), T.z)
for(var/turf/target_turf as() in RANGE_TURFS(rand(3,5), center)) //Give that boi a nice core.
if(prob(85)) //Bit of random distribution
for(var/turf/closed/mineral/target_turf as() in RANGE_TURFS(rand(4,6), center)) //Give that boi a nice core.
if(prob(80)) //Bit of random distribution
var/turf_type = pick(core_composition)
target_turf.ChangeTurf(turf_type) //Make the core itself
// add boundaries
Expand Down

0 comments on commit 6a6e3f7

Please sign in to comment.