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

Add creature effect tests #40234

Merged
merged 1 commit into from
May 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add creature effect tests
Includes test cases for `Creature` effects, covering functions:

- add_effect, remove_effect
- has_effect, has_effect_with_flag
- resists_effect, is_immune_effect

Behaviors exercised:

- characters may have an effect on a body part, or all-body
- monsters may only have all-body effects (not having body parts)
- monsters immune to an effect can still be forced to have it
- fleshy, warm-blooded monsters can bleed and be poisoned
- bony, non-warm monsters are immune to bleeding and poison
- fleshy, non-warm-blooded monsters are immune to bleeding and poison
- Slimy mutation gives immunity to corroding effect
- Tentacle bracing mutation gives immunity to downing
- Strong Stomach mutation gives immunity to nausea
  • Loading branch information
wapcaplet committed May 6, 2020
commit 687f76245c66a1e4946b93412dbd1d8b6d656dbe
Loading