Skip to content

Commit 6b78bb5

Browse files
committed
Fix behavioral changes introduced in previous commit.
1 parent 5a892c3 commit 6b78bb5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fix/tile-occupancy.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ end
3939

4040
local occ = dfhack.maps.getTileBlock(pos2xyz(cursor)).occupancy[cursor.x % 16][cursor.y % 16]
4141

42-
if occ.building and not dfhack.buildings.findAtTile(pos2xyz(cursor)) then
42+
if occ.building ~= df.tile_building_occ.None and not dfhack.buildings.findAtTile(pos2xyz(cursor)) then
4343
occ.building = df.tile_building_occ.None
4444
report('building')
4545
end

modtools/reaction-trigger-transition.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ for _,reaction in ipairs(df.global.world.raws.reactions.reactions) do
8787
if not workerOnly then
8888
reactionTriggerStr = reactionTriggerStr .. ' -workerOnly false'
8989
end
90-
if not allowMultipleTargets then
91-
reactionTriggerStr = reactionTriggerStr .. ' -allowMultipleTargets false'
90+
if allowMultipleTargets then
91+
reactionTriggerStr = reactionTriggerStr .. ' -allowMultipleTargets true'
9292
end
9393
if resetPolicy and resetPolicy ~= 'NewInstance' then
9494
reactionTriggerStr = reactionTriggerStr .. ' -resetPolicy ' .. resetPolicy

0 commit comments

Comments
 (0)