File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
1
-- Allows burial in unowned coffins.
2
2
-- Based on Putnam's work (https://gist.github.com/Putnam3145/e7031588f4d9b24b9dda)
3
+
3
4
local argparse = require (' argparse' )
4
5
local quickfort = reqscript (' quickfort' )
5
6
@@ -18,20 +19,12 @@ local tomb_blueprint = {
18
19
19
20
local tomb_count = 0
20
21
for _ , coffin in pairs (df .global .world .buildings .other .COFFIN ) do
21
-
22
- if cur_zlevel and coffin .z ~= df .global .window_z then
22
+ if # coffin .relations > 0 or cur_zlevel and coffin .z ~= df .global .window_z then
23
23
goto skip
24
24
end
25
- for _ , zone in pairs (coffin .relations ) do
26
- if zone .type == df .civzone_type .Tomb then
27
- goto skip
28
- end
29
- end
30
-
31
25
tomb_blueprint .pos = xyz2pos (coffin .x1 , coffin .y1 , coffin .z )
32
26
quickfort .apply_blueprint (tomb_blueprint )
33
27
tomb_count = tomb_count + 1
34
-
35
28
:: skip::
36
29
end
37
30
Original file line number Diff line number Diff line change 5
5
:summary: Create tomb zones for unzoned coffins.
6
6
:tags: fort productivity buildings
7
7
8
- Creates a 1x1 tomb zone for each built coffin that isn't already in a tomb.
8
+ Creates a 1x1 tomb zone for each built coffin that isn't already contained in a
9
+ zone.
9
10
10
11
Usage
11
12
-----
@@ -16,16 +17,16 @@ Examples
16
17
--------
17
18
18
19
``burial ``
19
- Create a tomb for every coffin on the map with automatic burial enabled .
20
+ Create a general use tomb for every unzoned coffin on the map.
20
21
21
22
``burial -z ``
22
23
Create tombs only on the current zlevel.
23
24
24
25
``burial -c ``
25
- Create tombs designated for automatic burial of citizens only.
26
+ Create tombs designated for burial of citizens only.
26
27
27
28
``burial -p ``
28
- Create tombs designated for automatic burial of pets only.
29
+ Create tombs designated for burial of pets only.
29
30
30
31
``burial -cp ``
31
32
Create tombs with automatic burial disabled for both citizens and pets,
You can’t perform that action at this time.
0 commit comments