Skip to content

Commit 75f3521

Browse files
committed
Merge remote-tracking branch 'origin/master' into autocheese
2 parents 67e94aa + 82ea795 commit 75f3521

File tree

4 files changed

+26
-13
lines changed

4 files changed

+26
-13
lines changed

changelog.txt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,25 @@ Template for new versions:
2626

2727
# Future
2828

29+
## New Tools
30+
31+
- `autocheese`: automatically make cheese using barrels that have accumulated sufficient milk
32+
33+
## New Features
34+
35+
## Fixes
36+
- `deathcause`: fix error when retrieving the name of a historical figure
37+
38+
## Misc Improvements
39+
40+
## Removed
41+
42+
# 50.15-r2
43+
2944
## New Tools
3045
- `fix/stuck-squad`: allow squads and messengers returning from missions to rescue squads that have gotten stuck on the world map
3146
- `gui/rename`: (reinstated) give new in-game language-based names to anything that can be named (e.g. units, governments, fortresses, or the world)
32-
- `autocheese`: automatically make cheese using barrels that have accumulated sufficient milk
47+
- `gui/rename`: (reinstated) give new in-game language-based names to anything that can be named (units, governments, fortresses, the world, etc.)
3348

3449
## New Features
3550
- `gui/settings-manager`: new overlay on the Labor -> Standing Orders tab for configuring the number of barrels to reserve for job use (so you can brew alcohol and not have all your barrels claimed by stockpiles for container storage)
@@ -51,8 +66,6 @@ Template for new versions:
5166
- `fix/wildlife`: don't vaporize stuck wildlife that is onscreen -- kill them instead (as if they died from old age)
5267
- `gui/sitemap`: show primary group affiliation for visitors and invaders (e.g. civilization name or performance troupe)
5368

54-
## Removed
55-
5669
# 50.15-r1
5770

5871
# 50.14-r2

deathcause.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function displayDeathEventHistFigUnit(histfig_unit, event)
7575
if slayer_histfig then
7676
str = str .. (", killed by the %s %s"):format(
7777
getRaceNameSingular(slayer_histfig.race),
78-
dfhack.translation.translateName(dfhack.units.getVisiblename(slayer_histfig))
78+
dfhack.translation.translateName(dfhack.units.getVisibleName(slayer_histfig))
7979
)
8080
end
8181

gui/rename.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,20 @@ local function select_new_target(cb)
253253
if #df.global.world.items.other.ANY_ARTIFACT > 0 then
254254
table.insert(choices, {text='An artifact', data={fn=select_artifact}})
255255
end
256+
if #df.global.world.units.all > 0 then
257+
table.insert(choices, {text='A unit', data={fn=select_unit}})
258+
end
256259
local site = dfhack.world.getCurrentSite()
257260
local is_fort_mode = dfhack.world.isFortressMode()
258261
local fort = is_fort_mode and df.historical_entity.find(df.global.plotinfo.group_id)
259262
local civ = is_fort_mode and df.historical_entity.find(df.global.plotinfo.civ_id)
260263
if site then
261-
if #site.buildings > 0 then
262-
table.insert(choices, {text='A location', data={fn=curry(select_location, site)}})
263-
end
264264
if fort and #fort.squads > 0 then
265265
table.insert(choices, {text='A squad', data={fn=curry(select_squad, fort)}})
266266
end
267+
if #site.buildings > 0 then
268+
table.insert(choices, {text='A location', data={fn=curry(select_location, site)}})
269+
end
267270
table.insert(choices, {text='This fortress/site', data={fn=curry(select_site, site)}})
268271
end
269272
if fort then
@@ -272,10 +275,7 @@ local function select_new_target(cb)
272275
if civ then
273276
table.insert(choices, {text='The civilization of this fortress', data={fn=curry(select_entity, civ)}})
274277
end
275-
if #df.global.world.units.all > 0 then
276-
table.insert(choices, {text='A unit', data={fn=select_unit}})
277-
end
278-
table.insert(choices, {text='This world', data={fn=select_world}})
278+
table.insert(choices, {text='The world', data={fn=select_world}})
279279
dlg.showListPrompt('Rename', 'What would you like to rename?', COLOR_WHITE,
280280
choices, function(_, choice) choice.data.fn(cb) end)
281281
end

internal/notify/notifications.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ NOTIFICATIONS_BY_IDX = {
536536
end,
537537
on_click=function()
538538
local minsSinceSave = dfhack.persistent.getUnsavedSeconds()//60
539-
local message = 'It has been ' .. dfhack.formatInt(minsSinceSave) .. ' minutes since your last save. \n\nWould you like to save now? ' ..
540-
'(Note: You can also close this reminder and save manually)'
539+
local message = 'It has been ' .. dfhack.formatInt(minsSinceSave) .. ' minutes since your last save. \n\nWould you like to save now?\n\n' ..
540+
'You can also close this reminder and save manually.'
541541
dlg.showYesNoPrompt('Save now?', message, nil, function() dfhack.run_script('quicksave') end)
542542
end,
543543
},

0 commit comments

Comments
 (0)