Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modtools/set-belief.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ end
-- Gives a list of all the unit's beliefs and their values.
-- Returns a table where the keys are the belief names and its values are its strength
-- If tiers is true, the value is the tier of the belief instead of the trait's strength
local function getUnitBeliefList(unit, tiers)
function getUnitBeliefList(unit, tiers)
local list = {}

for id, beliefName in ipairs(df.value_type) do
Expand Down
2 changes: 1 addition & 1 deletion modtools/set-personality.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function getUnitTraitCurrent(unit, trait)
local base = getUnitTraitBase(unit, trait)
local value = base
if unit.status.current_soul.personality.temporary_trait_changes ~= nil then
value = value + unit.status.current_soul.personality.temporary_trait_changes[trait]
value = value + unit.status.current_soul.personality.temporary_trait_changes.traits[trait]
end

return value
Expand Down
Loading