Created
March 7, 2013 07:16
-
-
Save warmist/5106154 to your computer and use it in GitHub Desktop.
Using body modifiers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local race=465 | |
local modifiers={} | |
local modifiers_idx={} | |
local caste=df.creature_raw.find(race).caste[1] | |
local bp=caste.bp_appearance | |
local unit=dfhack.gui.getSelectedUnit() | |
for k,v in pairs(bp.modifiers) do | |
if v.noun=='hair' then | |
print(k,df.appearance_modifier_type[v.type]) | |
modifiers_idx[k]=true | |
table.insert(modifiers,v) | |
end | |
end | |
for k,v in pairs(bp.modifier_idx) do | |
if modifiers_idx[v] then | |
print(k,v) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment