We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c69f49 commit 7bba53bCopy full SHA for 7bba53b
1 file changed
firestarter.lua
@@ -15,18 +15,15 @@ elseif dfhack.gui.getSelectedUnit(true) then
15
for k,v in ipairs(tinder) do
16
tinder[k].item.flags.on_fire=true
17
end
18
-elseif df.global.ui_advmode.menu==1 then
19
-local curpos=df.global.cursor
20
- df.global.world.fires:insert('#',{new=df.fire})
21
-local hot = df.global.world.fires
22
- for _,k in ipairs(hot) do
23
- if k.temperature==0 then
24
- local spot = k
25
- k.pos.x=curpos.x
26
- k.pos.y=curpos.y
27
- k.pos.z=curpos.z
28
- k.timer=1000
29
- k.temperature=60000
30
- end
31
+elseif df.global.cursor.x ~= -30000 then
+ local curpos = xyz2pos(pos2xyz(df.global.cursor))
+ df.global.world.fires:insert('#', {
+ new=df.fire,
+ timer=1000,
+ pos=curpos,
+ temperature=60000,
+ temp_unk1=60000,
+ temp_unk2=60000,
+ temp_unk3=60000,
+ })
32
0 commit comments