Skip to content

Commit 323a951

Browse files
committed
changes required for DFHack/df-structures#872
1 parent 16bd197 commit 323a951

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

armoks-blessing.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function brainwash_unit(unit)
2323
unit.status.current_soul.personality.traits.GREED = 25
2424
unit.status.current_soul.personality.traits.IMMODERATION = 25
2525
unit.status.current_soul.personality.traits.VIOLENT = 50
26-
unit.status.current_soul.personality.traits.PERSEVERENCE = 75
26+
unit.status.current_soul.personality.traits.PERSEVERANCE = 75
2727
unit.status.current_soul.personality.traits.WASTEFULNESS = 50
2828
unit.status.current_soul.personality.traits.DISCORD = 25
2929
unit.status.current_soul.personality.traits.FRIENDLINESS = 75
@@ -80,7 +80,7 @@ function brainwash_unit(unit)
8080
[df.value_type.HARD_WORK]=41,
8181
[df.value_type.SACRIFICE]=41,
8282
[df.value_type.COMPETITION]=-41,
83-
[df.value_type.PERSEVERENCE]=41,
83+
[df.value_type.PERSEVERANCE]=41,
8484
[df.value_type.LEISURE_TIME]=-11,
8585
[df.value_type.COMMERCE]=41,
8686
[df.value_type.ROMANCE]=41,

assign-beliefs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function assign(beliefs, unit, reset)
136136
belief = belief:upper()
137137
-- there's a typo in the game data
138138
if belief == "PERSEVERANCE" then
139-
belief = "PERSEVERENCE"
139+
belief = "PERSEVERANCE"
140140
end
141141
if df.value_type[belief] then
142142
if level >= -3 and level <= 3 then

assign-facets.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function assign(facets, unit, reset)
136136
facet = facet:upper()
137137
-- there's a typo in the game data
138138
if facet == "PERSEVERANCE" then
139-
facet = "PERSEVERENCE"
139+
facet = "PERSEVERANCE"
140140
end
141141
if df.personality_facet_type[facet] then
142142
if level >= -3 and level <= 3 then

devel/print-event.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ end
3434
local function print_event(event)
3535
local str = df.new("string")
3636
local ctx = df.history_event_context:new()
37-
event:getSentence(str, ctx)
37+
event:getSentence(str, ctx, true, false)
3838
ctx:delete()
3939
print(str.value)
4040
str:delete()

exportlegends.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,8 @@ local function export_more_legends_xml()
912912
for ID, event in progress_ipairs(vector, 'historical event relationship supplements') do
913913
file:write("\t<historical_event_relationship_supplement>\n")
914914
file:write("\t\t<event>"..event.event.."</event>\n")
915-
file:write("\t\t<occasion_type>"..event.occasion_type.."</occasion_type>\n")
916-
file:write("\t\t<site>"..event.site.."</site>\n")
915+
file:write("\t\t<occasion_type>"..event.circumstance.."</occasion_type>\n")
916+
file:write("\t\t<site>"..event.circumstance_id.."</site>\n")
917917
file:write("\t\t<reason>"..event.reason.."</reason>\n")
918918
file:write("\t</historical_event_relationship_supplement>\n")
919919
end

0 commit comments

Comments
 (0)