The hazmat suit doesn't cover eyes/mouth body parts, so liquid
projectile hits to those parts bypass the wetness check and apply
bile_stink. Add a gas mask to the test dummy to cover all body parts.
For some reason, the goblin background causes this effect to be applied
with duration zero, resulting in a debugmsg. Make a shouldfail test to
exercise this failure until it can be fixed.
This does not fix the bug, but it prevents it from occurring in the
test.
The bug is due in some way to trait interaction, and can be trivially
reproduced by creating a world with magiclysm, selecting the goblin
background, stripping naked, and letting boomers take shots at you.
* Test: basic implementation of boomer bile gun
* Use breathability to measure protection against liquid ammo
* wip on_hit_effect
* Apllying effects on Bp is handled in the effect definition, no need for extra c++
* Let clothing_wetness_mult be 0 when checking for permeability
* Only pass the Bp hit to apply_effects_nodamage
* make bile field glowing
* replace boomer attacks with gun, tweak gun and rounds
* remove BOOMER and BOOMER_GLOW hardcoded special attacks
* on_hit_effects Doc update
Co-authored-by: GuardianDll <GuardianDll@users.noreply.github.com>
* remove reference to inexistant bounce effect
* add missing include
* update gun ammo and boomer to current json style
* fix boomer puking sounds
* give ammo to huge boomer and glutton
* fixes from review
* blinding bile
* only advanced boomer makes glowing bile
* Add test for ammo effect application
* clean up loading code
* add sections to test
* add boomer_head to gun dps data
* tidy up
* fix crash
* fix ammo effect that should be a flag
---------
Co-authored-by: Fris0uman <fris0uman@users.noreply.github.com>
Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>
Co-authored-by: GuardianDll <GuardianDll@users.noreply.github.com>
* make projectile_attack void,
add targets_hit to dealt_projectile_attack, and
record hit data in it
* tweak BOUNCE
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* clang
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* typified a bit of map.h/cpp + dependents
* demanded changes
* demanded master changes drawn to its conclusion
* second int should be in corresponding location
Our string_id constants were a mixture of temporaries, locals, and
globals. Pull them all out as globals, for consistency and efficiency.
The efficiency comes from the fact that each string_id instance caches
its respective int_id, and sharing one instance means that value need
not be recomputed.
Catch2 provides a customization point for converting our types to
strings by specializing the StringMaker template.
We have some specializations in stringmaker.h, but this feature was only
working intermittently. I finally figured out that was due to an ODR
violation. The test files that didn't include stringmaker.h were
compiling a different specialization than the ones that did.
Re-jig the test includes so that any file including catch.hpp also
includes stringmaker.h, thereby ensuring that the custom
specializations are used everywhere and there is no ODR violation.
I achieved this by adding a new cata_catch.h header and making all
existing headers include catch.hpp via the new header.
* Change _ctype.h and __locale to cctype and clocale
* Change _wctype.h to cwctype in game.cpp
* Change __functional_base to functional
* Remove libcxx internal headers
* Remove UNIX system headers
* Fix clang-tidy error with -nostdinc++
itype_id is (presumably) one of the oldest type ids in the game. In
particular, it predates string_id, and was simply a typedef of
std::string.
This is bad for type safety.
Make it be a string_id specialization instead, and update the rest of
the code accordingly.