Skip to content

Instantly share code, notes, and snippets.

@Putnam3145
Created December 14, 2014 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Putnam3145/e7031588f4d9b24b9dda to your computer and use it in GitHub Desktop.
Save Putnam3145/e7031588f4d9b24b9dda to your computer and use it in GitHub Desktop.
Automatically assigns all unowned coffins for burial. Use argument "-pets" to allow pets as well as citizens.
local utils=require('utils')
validArgs = validArgs or utils.invert({
'pets'
})
local args = utils.processArgs({...}, validArgs)
for k,v in ipairs(df.global.world.buildings.other.COFFIN) do
if v.owner_id==-1 then
v.burial_mode.allow_burial=true
if not args.pets then
v.burial_mode.no_pets=true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment