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 "Mysterious dungeon/script"
Jump to navigation
Jump to search
(Created page with "<syntaxhighlight lang="lua"> entities.mythical_guardian.default=function(idx,tok) local lines={} for k,v in ipairs({"WEAPON","AMMO","SHIELD","ARMOR","HELM","GLOVES","S...") |
(No difference)
|
Latest revision as of 01:09, 12 March 2025
entities.mythical_guardian.default=function(idx,tok)
local lines={}
for k,v in ipairs({"WEAPON","AMMO","SHIELD","ARMOR","HELM","GLOVES","SHOES","PANTS"}) do
for kk,vv in ipairs(world.itemdef[v:lower()]) do
if not vv.generated then
lines[#lines+1]="["..v..":"..vv.token..(rarityless_items[v] and "" or ":COMMON").."]"
end
end
end
lines[#lines+1]="[DIVINE_MAT_WEAPONS]"
lines[#lines+1]="[DIVINE_MAT_ARMOR]"
lines[#lines+1]="[DIVINE_MAT_CRAFTS]"
lines[#lines+1]="[DIVINE_MAT_CLOTHING]"
lines[#lines+1]="[CLOTHING]"
lines[#lines+1]="[TRANSLATION:GEN_DIVINE]"
return {entity=lines,weight=1}
end