Skip to content

Commit 58e24f9

Browse files
committed
clean up points code
1 parent 263cfcf commit 58e24f9

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

points.lua

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
-- Set available points at the embark screen
2-
-- http://www.bay12forums.com/smf/index.php?topic=135506.msg4925005#msg4925005
3-
--[====[
4-
5-
points
6-
======
7-
Sets available points at the embark screen to the specified number. Eg.
8-
``points 1000000`` would allow you to buy everything, or ``points 0`` would
9-
make life quite difficult.
10-
11-
]====]
12-
131
if dfhack.isWorldLoaded() then
142
df.global.world.worldgen.worldgen_parms.embark_points = tonumber(...)
15-
local scr = dfhack.gui.getCurViewscreen()
3+
local scr = dfhack.gui.getDFViewscreen()
164
if df.viewscreen_setupdwarfgamest:is_instance(scr) then
17-
local scr = scr --as:df.viewscreen_setupdwarfgamest
185
scr.points_remaining = tonumber(...)
196
end
207
else

0 commit comments

Comments
 (0)