v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Primordial remnant/script
Jump to navigation
Jump to search
1mythical_remnant_adjectives={
2 "primordial",
3 "elder",
4 "cosmic",
5 "primal",
6 "elemental",
7 "primeval"
8}
9
10mythical_remnant_spheres={}
11
12mythical_remnant_spheres.MOUNTAINS={
13 name="stone",
14 color="4:0:1",
15 state_color="GRAY"
16}
17
18mythical_remnant_spheres.MINERALS=mythical_remnant_spheres.MOUNTAINS
19mythical_remnant_spheres.CAVERNS=mythical_remnant_spheres.MOUNTAINS
20mythical_remnant_spheres.EARTH=mythical_remnant_spheres.MOUNTAINS
21
22mythical_remnant_spheres.JEWELS={
23 name="crystal",
24 color="7:0:1",
25 state_color="WHITE"
26}
27
28mythical_remnant_spheres.CHAOS={
29 name="chaos",
30 color="4:0:1",
31 state_color="RED"
32}
33
34mythical_remnant_spheres.DARKNESS={
35 name="darkness",
36 color="0:0:1",
37 state_color="BLACK"
38}
39
40mythical_remnant_spheres.DEATH=mythical_remnant_spheres.DARKNESS
41mythical_remnant_spheres.NIGHTMARES=mythical_remnant_spheres.DARKNESS
42
43mythical_remnant_spheres.DREAMS={
44 name="dreamstuff",
45 color="2:0:1",
46 state_color="GREEN"
47}
48
49mythical_remnant_spheres.FIRE={
50 name="fire",
51 color="4:0:1",
52 state_color="RED"
53}
54
55mythical_remnant_spheres.LIGHT={
56 name="light",
57 color="6:0:1",
58 state_color="YELLOW"
59}
60
61mythical_remnant_spheres.LIGHTNING={
62 name="lightning",
63 color="6:0:1",
64 state_color="YELLOW"
65}
66
67mythical_remnant_spheres.METALS={
68 name="metal",
69 color="7:0:1",
70 state_color="SILVER"
71}
72
73mythical_remnant_spheres.MOON={
74 name="moonstone",
75 color="7:0:1",
76 state_color="WHITE"
77}
78
79mythical_remnant_spheres.DARKNESS={
80 name="mudstone",
81 color="6:0:0",
82 state_color="BROWN"
83}
84
85mythical_remnant_spheres.OCEANS={
86 name="ice",
87 color="1:0:1",
88 state_color="BLUE"
89}
90
91mythical_remnant_spheres.WATER=mythical_remnant_spheres.OCEANS
92
93mythical_remnant_spheres.PLANTS={
94 name="leaf",
95 color="2:0:1",
96 state_color="GREEN"
97}
98
99mythical_remnant_spheres.SALT={
100 name="salt",
101 color="7:0:1",
102 state_color="WHITE"
103}
104
105mythical_remnant_spheres.MIST={
106 name="cloudstuff",
107 color="7:0:1",
108 state_color="WHITE"
109}
110
111mythical_remnant_spheres.SKY=mythical_remnant_spheres.MIST
112mythical_remnant_spheres.STORMS=mythical_remnant_spheres.MIST
113mythical_remnant_spheres.WIND=mythical_remnant_spheres.MIST
114
115mythical_remnant_spheres.STARS={
116 name="stardust",
117 color="6:0:1",
118 state_color="YELLOW"
119}
120
121mythical_remnant_spheres.SUN={
122 name="sunstone",
123 color="6:0:1",
124 state_color="YELLOW"
125}
126
127mythical_remnant_spheres.TREES={
128 name="wood",
129 color="6:0:0",
130 state_color="BROWN"
131}
132
133mythical_remnant_spheres.VOLCANOS={
134 name="obsidian",
135 color="4:0:1",
136 state_color="RED"
137}
138
139
140materials.mythical_remnant.default=function(sph)
141 local lines={}
142 lines[#lines+1]="[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]"
143 local sph_info = mythical_remnant_spheres[sph] or {name="glitchstuff", color="0:0:1", state_color="BLACK"}
144 lines[#lines+1]="[DISPLAY_COLOR:"..sph_info.color.."]"
145 lines[#lines+1]="[BUILD_COLOR:"..sph_info.color.."]"
146 lines[#lines+1]="[STATE_COLOR:ALL:"..sph_info.state_color.."]"
147 lines[#lines+1]="[STATE_NAME_ADJ:ALL_SOLID:"..pick_random(mythical_remnant_adjectives).." "..sph_info.name.."]"
148 lines[#lines+1]="[MATERIAL_VALUE:200]"
149 lines[#lines+1]="[SPEC_HEAT:7500]"
150 lines[#lines+1]="[MELTING_POINT:NONE]"
151 lines[#lines+1]="[BOILING_POINT:NONE]"
152 lines[#lines+1]="[ITEMS_HARD]"
153 if(sph=="METALS") then lines[#lines+1]="[ITEMS_METAL]" end
154 lines[#lines+1]="[SOLID_DENSITY:1000]"
155 lines[#lines+1]="[LIQUID_DENSITY:1000]"
156 lines[#lines+1]="[MOLAR_MASS:20000]"
157 lines[#lines+1]="[IMPACT_YIELD:1000000]"
158 lines[#lines+1]="[IMPACT_FRACTURE:2000000]"
159 lines[#lines+1]="[IMPACT_STRAIN_AT_YIELD:0]"
160 lines[#lines+1]="[COMPRESSIVE_YIELD:1000000]"
161 lines[#lines+1]="[COMPRESSIVE_FRACTURE:2000000]"
162 lines[#lines+1]="[COMPRESSIVE_STRAIN_AT_YIELD:0]"
163 lines[#lines+1]="[TENSILE_YIELD:1000000]"
164 lines[#lines+1]="[TENSILE_FRACTURE:2000000]"
165 lines[#lines+1]="[TENSILE_STRAIN_AT_YIELD:0]"
166 lines[#lines+1]="[TORSION_YIELD:1000000]"
167 lines[#lines+1]="[TORSION_FRACTURE:2000000]"
168 lines[#lines+1]="[TORSION_STRAIN_AT_YIELD:0]"
169 lines[#lines+1]="[SHEAR_YIELD:1000000]"
170 lines[#lines+1]="[SHEAR_FRACTURE:2000000]"
171 lines[#lines+1]="[SHEAR_STRAIN_AT_YIELD:0]"
172 lines[#lines+1]="[BENDING_YIELD:1000000]"
173 lines[#lines+1]="[BENDING_FRACTURE:2000000]"
174 lines[#lines+1]="[BENDING_STRAIN_AT_YIELD:0]"
175 lines[#lines+1]="[MAX_EDGE:12000]"
176 return {mat=lines,weight=1}
177end