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

Makeown-plus #1212

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

Crystalwarrior
Copy link
Contributor

Able to make snatchers your own now
Able to make giants your own to an extent (though their Large Predator caste flag gets in the way)

makeown.lua Outdated Show resolved Hide resolved
makeown.lua Outdated Show resolved Hide resolved
makeown.lua Outdated
@@ -215,6 +262,8 @@ function make_own(unit)
else
unit.flags1.tame = true
unit.training_level = df.animal_training_level.Domesticated
-- No more "vengeful" spam when civilizing Giants!
unit.enemy.caste_flags.LARGE_PREDATOR = false;
Copy link
Member

Choose a reason for hiding this comment

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

does this "stick"? I thought unit.enemy.caste_flags gets overwritten with actual race caste flags (plus syndrome flags) periodically

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yah it doesn't stick, might as well remove it

makeown.lua Show resolved Hide resolved
makeown.lua Show resolved Hide resolved
@myk002
Copy link
Member

myk002 commented Jun 28, 2024

also needs changelog entry

@myk002
Copy link
Member

myk002 commented Jul 2, 2024

you can set vscode to remove trailing spaces on save. That might help you pass the pre-commit.ci check with more consistency.

makeown.lua Outdated
end

-- Also used by the script fix/loyaltycascade
function fixUnitEnemyStatus(unit)
Copy link
Member

Choose a reason for hiding this comment

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

"fix" is subjective. I think this should be named after what it actually does: clearUnitEnemyStatus

makeown.lua Show resolved Hide resolved
Copy link
Member

@myk002 myk002 left a comment

Choose a reason for hiding this comment

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

LGTM other than the changelog

edit: also please fix pre-commit.ci warnings

@@ -48,6 +48,7 @@ Template for new versions:
- `gui/pathable`: new "Depot" mode that shows whether wagons can path to your trade depot
- `advtools`: automatically add a conversation option to "ask whereabouts of" for all your relationships (before, you could only ask whereabouts of people involved in rumors)
- `gui/design`: all-new visually-driven UI for much improved usability
- `makeown`: goblin snatchers and giants can now be makeown-ed more reliably
Copy link
Member

Choose a reason for hiding this comment

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

needs to get moved to changelog for current version. also, should likely go in Fixes, and say something like "Fix enemy creatures continuing to be hostile after makeown"

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

Successfully merging this pull request may close these issues.

2 participants