Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to extermiante all wild creatures #999

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hiranus
Copy link
Contributor

@Hiranus Hiranus commented Feb 21, 2024

Added ability to exterminate all wild creatures with single command

@silverwing235
Copy link

silverwing235 commented Feb 22, 2024

@Hiranus ...and also a typo in your title; are you sure you want it out there like that?

@@ -30,6 +30,10 @@ Examples
Kill the ravens flying around the map (but only the male ones).
``exterminate GOBLIN --method magma --only-visible``
Kill all visible, hostile goblins on the map by boiling them in magma.
``exterminate all``
Kill all wild creatures.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Kill all wild creatures.
Kill all non-friendly creatures.

``exterminate all``
Kill all wild creatures.
``exterminate all:FEMALE``
Kill all wild female creatures.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Kill all wild female creatures.
Kill all non-friendly female creatures.

selected_caste = tokens[2]
end

for _, unit in pairs(df.global.world.units.active) do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for _, unit in pairs(df.global.world.units.active) do
for _, unit in ipairs(df.global.world.units.active) do

Comment on lines +185 to +190
local selected_caste = nil

if string.find(positionals[1], ':') then
local tokens = positionals[1]:split(':')
selected_caste = tokens[2]
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
local selected_caste = nil
if string.find(positionals[1], ':') then
local tokens = positionals[1]:split(':')
selected_caste = tokens[2]
end
local selected_caste = positionals[1]:split(':')[2]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize this was copied from the section below, but since you don't care about the "race" (all) here, it can be simplified

@myk002
Copy link
Member

myk002 commented Feb 25, 2024

Also needs changelog entry, please

@myk002
Copy link
Member

myk002 commented Mar 6, 2024

Ping on this; have you had a chance to read the review comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants