Skip to content

Commit

Permalink
Merge pull request #1035 from myk002/myk_catadult
Browse files Browse the repository at this point in the history
[catsplosion] only cause pregnancies in adults
  • Loading branch information
myk002 authored Mar 12, 2024
2 parents 071d7d0 + 23b1f6e commit 39c4723
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion catsplosion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ local males = {} --as:df.unit[][]
local females = {} --as:df.unit[][]

for _, unit in pairs(world.units.active) do
if dfhack.units.isDead(unit) then
if not dfhack.units.isActive(unit) or
dfhack.units.isDead(unit) or
dfhack.units.isBaby(unit) or
dfhack.units.isChild(unit)
then
goto continue
end
local id = world.raws.creatures.all[unit.race].creature_id
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Template for new versions:
- `gui/launcher`: fix history scanning (Up/Down arrow keys) being slow to respond when in minimal mode
- `control-panel`: fix filtering not filtering when running the ``list`` command
- `gui/notify`: don't zoom to forbidden depots for merchants ready to trade notification
- `catsplosion`: only cause pregnancies in adults

## Misc Improvements
- `gui/launcher`: add interface for browsing and filtering commands by tags
Expand Down
3 changes: 2 additions & 1 deletion docs/catsplosion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ catsplosion
:tags: fort armok animals

This tool makes cats (or anything else) immediately pregnant. If you value your
fps, it is a good idea to use this tool sparingly.
fps, it is a good idea to use this tool sparingly. Only adult females of the
chosen race(s) will become pregnant.

Usage
-----
Expand Down

0 comments on commit 39c4723

Please sign in to comment.