Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit ee48099

Browse files
authored
Adds a new ore to Icemoon, Plasma Glacite (#22662)
* lets get it started in here * i need to fix that * i might be cooking * i think this is probably ready to go * whoops * whoops * way too uncommon * forgot to delete that * crusher * whoops * line * whoops * this should look better * done * make it a bit brighter and whooops * moon anvil changes * makes that right * Update minerals.dm * whoops * me very smart! * nvm i' mnot smart * should fix this
1 parent 72d6567 commit ee48099

File tree

13 files changed

+854
-44
lines changed

13 files changed

+854
-44
lines changed

_maps/RandomRuins/IceRuins/icemoon_underground_moonanvil.dmm

Lines changed: 471 additions & 0 deletions
Large diffs are not rendered by default.

code/datums/mapgen/Cavegens/IcemoonCaves.dm

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,53 @@
1313
///Note that this spawn list is also in the lavaland generator
1414
weighted_feature_spawn_list = null
1515

16+
var/initial_basalt_chance = 40
17+
var/basalt_smoothing_interations = 100
18+
var/basalt_birth_limit = 4
19+
var/basalt_death_limit = 3
20+
var/basalt_turf = /turf/closed/mineral/random/snow/hard/icemoon
21+
22+
var/big_node_min = 25
23+
var/big_node_max = 55
24+
25+
var/min_offset = 0
26+
var/max_offset = 5
27+
28+
/datum/map_generator/cave_generator/icemoon/generate_terrain(list/turfs) //literally just the lavaland one before it had granite i'll add something for granite later
29+
. = ..()
30+
var/start_time = REALTIMEOFDAY
31+
var/node_amount = rand(6,10)
32+
33+
var/list/possible_turfs = turfs.Copy()
34+
for(var/node=1 to node_amount)
35+
var/turf/picked_turf = pick_n_take(possible_turfs)
36+
if(!picked_turf)
37+
continue
38+
//time for bounds
39+
var/size_x = rand(big_node_min,big_node_max)
40+
var/size_y = rand(big_node_min,big_node_max)
41+
42+
//time for noise
43+
var/node_gen = rustg_cnoise_generate("[initial_basalt_chance]", "[basalt_smoothing_interations]", "[basalt_birth_limit]", "[basalt_death_limit]", "[size_x + 1]", "[size_y + 1]")
44+
var/list/changing_turfs = block(locate(picked_turf.x - round(size_x/2),picked_turf.y - round(size_y/2),picked_turf.z),locate(picked_turf.x + round(size_x/2),picked_turf.y + round(size_y/2),picked_turf.z))
45+
for(var/turf/T in changing_turfs) //ccopy and pasted shitcode
46+
if(!ismineralturf(T))
47+
continue
48+
var/index = changing_turfs.Find(T)
49+
var/hardened = text2num(node_gen[index])
50+
if(!hardened)
51+
continue
52+
var/hard_path = text2path("[T.type]/hard")
53+
if(!ispath(hard_path)) //erm what the shit we dont have a hard type
54+
continue
55+
var/turf/new_turf = hard_path
56+
new_turf = T.ChangeTurf(new_turf, initial(new_turf.baseturfs), CHANGETURF_DEFER_CHANGE)
57+
58+
var/message = "IceMoon Auxiliary generation finished in [(REALTIMEOFDAY - start_time)/10]s!"
59+
to_chat(world, span_boldannounce("[message]"))
60+
log_world(message)
61+
62+
1663
/datum/map_generator/cave_generator/icemoon/surface
1764
flora_spawn_chance = 4
1865
weighted_mob_spawn_list = list(/mob/living/simple_animal/hostile/asteroid/wolf = 50, /obj/structure/spawner/ice_moon = 3, \

code/datums/ruins/icemoon.dm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@
6969

7070
// above and below ground together
7171

72+
/datum/map_template/ruin/icemoon/underground/moonanvil
73+
name = "Moon Anvil"
74+
id = "moonanvil"
75+
description = "An ancient anvil once used to make very powerful weapons."
76+
suffix = "icemoon_underground_moonanvil.dmm"
77+
always_place = TRUE
78+
unpickable = TRUE
79+
cost = 0
80+
7281
/datum/map_template/ruin/icemoon/mining_site
7382
name = "Mining Site"
7483
id = "miningsite"

0 commit comments

Comments
 (0)