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

Limit feral humans ammo #47754

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

aerrant
Copy link
Contributor

@aerrant aerrant commented Feb 26, 2021

Summary

None

Purpose of change

Prevents feral human monsters from having unlimited rocks to throw. Fixes #42169

Describe the solution

Minor json changes to both the monster and its (fake) gun definition.

Testing

Start with an evac shelter and edit the map to replace the (closed) ladder door with metal bars (t_bars). Summon a feral human monster there. Check if the monster throws exactly six stones at you, as is intended.

Additional context

Feral humans have a NO_PENETRATE_OBSTACLES ammo effect that prevents their projectiles from passing through transparent, but impassable terrains, like bars. This seems to be unique to the monster and I'm not sure if this is their intended behavior.

@wapcaplet wapcaplet added <Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON labels Feb 26, 2021
"ammo_effects": [ "NO_PENETRATE_OBSTACLES" ],
"clip_size": 1,
Copy link
Member

Choose a reason for hiding this comment

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

Make that six rocks, please.

Copy link
Contributor Author

@aerrant aerrant Feb 27, 2021

Choose a reason for hiding this comment

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

Are you sure? It's not ammo count, and a slingshot has the same clip_size of 1. The ammo count is defined as starting_ammo in monster definition and is set to 6. According to my testing, feral humans are now correctly limited to six rocks, with no visible side effects.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry I was confused. I’ll figure out how to change my review. Thanks for fixing this.

@Rivet-the-Zombie Rivet-the-Zombie merged commit 661c627 into CleverRaven:master Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feral Humans throw infinite bricks
4 participants