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.

Mysterious dungeon/script

From Dwarf Fortress Wiki
< Mysterious dungeon
Revision as of 01:09, 12 March 2025 by DPhKraken (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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
CancelHideAbout

Rating Mysterious dungeon/script