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

From Dwarf Fortress Wiki
< Primordial remnant
Revision as of 04:30, 28 November 2024 by DPhKraken (talk | contribs) (Better syntax highlighting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1materials.mythical_remnant.default=function(sph)
 2    local lines={}
 3    lines[#lines+1]="[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]"
 4    lines[#lines+1]="[STATE_NAME_ADJ:ALL_SOLID:"..pick_one(mythical_remnant_adjectives).." "..mythical_remnant_spheres[sph].name.."]"
 5    lines[#lines+1]="[MATERIAL_VALUE:200]"
 6    lines[#lines+1]="[SPEC_HEAT:7500]"
 7    lines[#lines+1]="[MELTING_POINT:NONE]"
 8    lines[#lines+1]="[BOILING_POINT:NONE]"
 9    lines[#lines+1]="[ITEMS_HARD]"
10    if(sph=="METALS") then lines[#lines+1]="[ITEMS_METAL]" end
11    lines[#lines+1]="[SOLID_DENSITY:1000]"
12    lines[#lines+1]="[LIQUID_DENSITY:1000]"
13    lines[#lines+1]="[MOLAR_MASS:20000]"
14    lines[#lines+1]="[IMPACT_YIELD:1000000]"
15    lines[#lines+1]="[IMPACT_FRACTURE:2000000]"
16    lines[#lines+1]="[IMPACT_STRAIN_AT_YIELD:0]"
17    lines[#lines+1]="[COMPRESSIVE_YIELD:1000000]"
18    lines[#lines+1]="[COMPRESSIVE_FRACTURE:2000000]"
19    lines[#lines+1]="[COMPRESSIVE_STRAIN_AT_YIELD:0]"
20    lines[#lines+1]="[TENSILE_YIELD:1000000]"
21    lines[#lines+1]="[TENSILE_FRACTURE:2000000]"
22    lines[#lines+1]="[TENSILE_STRAIN_AT_YIELD:0]"
23    lines[#lines+1]="[TORSION_YIELD:1000000]"
24    lines[#lines+1]="[TORSION_FRACTURE:2000000]"
25    lines[#lines+1]="[TORSION_STRAIN_AT_YIELD:0]"
26    lines[#lines+1]="[SHEAR_YIELD:1000000]"
27    lines[#lines+1]="[SHEAR_FRACTURE:2000000]"
28    lines[#lines+1]="[SHEAR_STRAIN_AT_YIELD:0]"
29    lines[#lines+1]="[BENDING_YIELD:1000000]"
30    lines[#lines+1]="[BENDING_FRACTURE:2000000]"
31    lines[#lines+1]="[BENDING_STRAIN_AT_YIELD:0]"
32    lines[#lines+1]="[MAX_EDGE:12000]"
33    return {mat=lines,weight=1}
34end