Skip to content

Instantly share code, notes, and snippets.

@thistleknot
Created August 3, 2013 10:52
Show Gist options
  • Save thistleknot/6146077 to your computer and use it in GitHub Desktop.
Save thistleknot/6146077 to your computer and use it in GitHub Desktop.
unit = dfhack.gui.getSelectedUnit()
PlusPlus = {700, 1200, 1400, 1500, 1600, 1800, 2500}
Plus = {450, 950, 1150, 1250, 1350, 1550, 2250}
Normal = {200, 700, 900, 1000, 1100, 1300, 2000}
Minus = {150, 600, 800, 900, 1000, 1100, 1500}
PhysicalPlus = {"STRENGTH", "TOUGHNESS", "ANALYTICAL_ABILITY", "FOCUS", "CREATIVITY", "PATIENCE", "MEMORY"}
P_Attributes = unit.body.physical_attrs
M_Attributes = unit.status.current_sould.mental_attrs
for i, v in ipairs(PhysicalPlus) do
P_Attributes[PhysicalPlus[v]].value = Plus[7]
P_Attributes[PhysicalPlus[v]].max_value = Plus[7]*2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment