We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 263cfcf commit 58e24f9Copy full SHA for 58e24f9
points.lua
@@ -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
13
if dfhack.isWorldLoaded() then
14
df.global.world.worldgen.worldgen_parms.embark_points = tonumber(...)
15
- local scr = dfhack.gui.getCurViewscreen()
+ local scr = dfhack.gui.getDFViewscreen()
16
if df.viewscreen_setupdwarfgamest:is_instance(scr) then
17
- local scr = scr --as:df.viewscreen_setupdwarfgamest
18
scr.points_remaining = tonumber(...)
19
end
20
else
0 commit comments