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 (Added noinclude) |
||
Line 35: | Line 35: | ||
end | end | ||
</nowiki>}} | </nowiki>}} | ||
− | {{Category|Lua script pages}} | + | <noinclude>{{Category|Lua script pages}}{{Category|Inorganic raw pages}}</noinclude> |
− | {{Category|Inorganic raw pages}} |
Revision as of 04:02, 28 November 2024
materials.mythical_remnant.default=function(sph)
local lines={}
lines[#lines+1]="[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]"
lines[#lines+1]="[STATE_NAME_ADJ:ALL_SOLID:"..pick_one(mythical_remnant_adjectives).." "..mythical_remnant_spheres[sph].name.."]"
lines[#lines+1]="[MATERIAL_VALUE:200]"
lines[#lines+1]="[SPEC_HEAT:7500]"
lines[#lines+1]="[MELTING_POINT:NONE]"
lines[#lines+1]="[BOILING_POINT:NONE]"
lines[#lines+1]="[ITEMS_HARD]"
if(sph=="METALS") then lines[#lines+1]="[ITEMS_METAL]" end
lines[#lines+1]="[SOLID_DENSITY:1000]"
lines[#lines+1]="[LIQUID_DENSITY:1000]"
lines[#lines+1]="[MOLAR_MASS:20000]"
lines[#lines+1]="[IMPACT_YIELD:1000000]"
lines[#lines+1]="[IMPACT_FRACTURE:2000000]"
lines[#lines+1]="[IMPACT_STRAIN_AT_YIELD:0]"
lines[#lines+1]="[COMPRESSIVE_YIELD:1000000]"
lines[#lines+1]="[COMPRESSIVE_FRACTURE:2000000]"
lines[#lines+1]="[COMPRESSIVE_STRAIN_AT_YIELD:0]"
lines[#lines+1]="[TENSILE_YIELD:1000000]"
lines[#lines+1]="[TENSILE_FRACTURE:2000000]"
lines[#lines+1]="[TENSILE_STRAIN_AT_YIELD:0]"
lines[#lines+1]="[TORSION_YIELD:1000000]"
lines[#lines+1]="[TORSION_FRACTURE:2000000]"
lines[#lines+1]="[TORSION_STRAIN_AT_YIELD:0]"
lines[#lines+1]="[SHEAR_YIELD:1000000]"
lines[#lines+1]="[SHEAR_FRACTURE:2000000]"
lines[#lines+1]="[SHEAR_STRAIN_AT_YIELD:0]"
lines[#lines+1]="[BENDING_YIELD:1000000]"
lines[#lines+1]="[BENDING_FRACTURE:2000000]"
lines[#lines+1]="[BENDING_STRAIN_AT_YIELD:0]"
lines[#lines+1]="[MAX_EDGE:12000]"
return {mat=lines,weight=1}
end