Skip to content

Commit

Permalink
feat: add moar prefabs!
Browse files Browse the repository at this point in the history
WRK_garrisons
  • Loading branch information
kiedtl committed May 13, 2024
1 parent 261a9b0 commit d520744
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 0 deletions.
109 changes: 109 additions & 0 deletions data/prefabs/WRK_garrisons.fab
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
:g_tunneler
:g_restriction 5
:g_individual_restriction 1
:noitems
:noguards

@@p Cmons sparkling ([prm_status1]Sleeping [no_squads]yea)
@@e Cmons emberling ([prm_status1]Sleeping [no_squads]yea)
@@y Cmons copper_hornet ([prm_status1]Sleeping [no_squads]yea)
@@1 Cmons copper_hornet ([cancel_status1]Sleeping [no_squads]yea)
@@2 Cmons sparkling ([cancel_status1]Sleeping [no_squads]yea)
@@3 Cmons emberling ([cancel_status1]Sleeping [no_squads]yea)

:tunneler_orientation north
:tunneler_orientation east
:tunneler_orientation south
:tunneler_orientation west
:tunneler_inset
p

\

:tunneler_orientation north
:tunneler_orientation east
:tunneler_orientation south
:tunneler_orientation west
:tunneler_inset
e

\

:tunneler_orientation north
:tunneler_orientation east
:tunneler_orientation south
:tunneler_orientation west
:tunneler_inset
y

\

:tunneler_orientation north
3
.

\

:tunneler_orientation south
.
3

\

:tunneler_orientation east
.3•

\

:tunneler_orientation west
•3.

\

:tunneler_orientation north
1
.

\

:tunneler_orientation south
.
1

\

:tunneler_orientation east
.1•

\

:tunneler_orientation west
•1.

\

:tunneler_orientation north
2
.

\

:tunneler_orientation south
.
2

\

:tunneler_orientation east
.2•

\

:tunneler_orientation west
•2.
4 changes: 4 additions & 0 deletions src/mobs.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2271,6 +2271,7 @@ pub const PlaceMobOptions = struct {
prisoner_of: ?types.Faction = null,
prm_status1: ?Status = null,
prm_status2: ?Status = null,
cancel_status1: ?Status = null,
job: ?types.AIJob.Type = null,
tag: ?u8 = null,
near_stair_opts: struct {
Expand Down Expand Up @@ -2335,6 +2336,9 @@ pub fn placeMob(
mob.addStatus(status_info.status, status_info.power, status_info.duration);
}

if (opts.cancel_status1) |s|
mob.cancelStatus(s);

state.mobs.append(mob) catch err.wat();
const mob_ptr = state.mobs.last().?;

Expand Down

0 comments on commit d520744

Please sign in to comment.