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.
Difference between revisions of "Primordial remnant/script"
Jump to navigation
Jump to search
(Created page with "{{code|lang=lua |<nowiki> materials.mythical_remnant.default=function(sph) local lines={} lines[#lines+1]="[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]" lines[#lines+1]=...") |
m (Better syntax highlighting) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <syntaxhighlight lang="lua" line> | |
materials.mythical_remnant.default=function(sph) | materials.mythical_remnant.default=function(sph) | ||
local lines={} | local lines={} | ||
Line 34: | Line 34: | ||
return {mat=lines,weight=1} | return {mat=lines,weight=1} | ||
end | end | ||
− | </ | + | </syntaxhighlight> |
− | {{Category|Lua script pages}} | + | <noinclude>{{Category|Lua script pages}}{{Category|Inorganic raw pages}}</noinclude> |
− | {{Category|Inorganic raw pages}} |
Latest revision as of 04:30, 28 November 2024
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