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

Yellow slimes won't try to shock non-mob food targets #9187

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

Ilysen
Copy link
Contributor

@Ilysen Ilysen commented Jul 31, 2023

purpose

yellow slimes distant from food or dirt on the ground won't try to actually go and eat it - instead they'll get trapped in a loop of shocking it with their ranged attack over and over

details

implements an override on the xenobio/yellow type to cause ICheckRangedAttack to return false if the target isn't a mob, and to run the base method if it is. this could also feasibly be put on the base slime type, if desired

testing

put an adult yellow slime in a pen with a blood splatter both before and after applying the changes. before, they get stuck shocking it; after, they do not, and will go over to normal adjacent distance and eat it.

@Atermonera Atermonera added the Bugfix The PR fixes one or more bugs. label Aug 5, 2023
@Atermonera Atermonera merged commit 07587c5 into PolarisSS13:master Aug 5, 2023
7 checks passed
@Ilysen Ilysen deleted the pre-fried-food branch August 5, 2023 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix The PR fixes one or more bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants