* Remove itch from chemical conjunctivitis
* Remove itch from chemical conjunctivitis
* Reduce minimum conjunctivitis duration
* Reduce vision penalty of conjunctivitis and add duration cap
* Lint effects.json
* Change eyedrops test and code to reflect new minimum duration
---------
Co-authored-by: zach.johnson <zach.johnson@Vaduminc.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Add bile effect
* Add EOC_boomer_bile_affliction
* Adjust resistances
* Add morale_bile
* Add morale effect to EOC_boomer_bile_affliction
* Add new scent sc_bile
* Split bile effect into bile_stink and bile_irritant
* Remove vomiting from boomered and add more resist_traits to bile_stink
* Update EOC_boomer_bile_affliction to reflect split of bile effect
* Allow towel to wipe off bile
* Add `bile_irritant` to `effects_description_for_creature`
* Allow swimming to remove bile from the skin
* Add bile_irritant to towel test
* Give resistance to bile morale impact with certain traits
* Apply suggestions from code review
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
* Remove social modifiers from bile_stink and add intimidate to bile_irritant
* Remove intimidation bonus from bile_irritant
* Fix misc_effect_on_condition.json merge conflict
* Tweak effect values
* Change health mods to daily health mods
* Add bite effect duration scaling
* Add decay messages
* Fix towel test
* Make being covered in bile not a happy occasion
* Fix IRRITANT_IMMUNE check
* Reorder effects
* Fix cringe merge conflicts
* Update data/json/effects.json
* Update data/json/effects.json
---------
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* Rename fatigue to sleepiness
I feel like this is going to break some stuff?
* seems my upstream was not up to date. fun.
* A few more I missed
* astyle, json style
gangnam style? Is that still a thing?
* docs
* rename fatigue.json
also catches a few bad f+r I missed
* Update itemgroups.json
* fd_fatigue --> fd_reality_tear
* Update data/mods/MindOverMatter/mapgen/microlab_rooms.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* missed some fd_sleepiness
* fd_sleepines in tests
I really thought I got these already gr.
* Update doc/MAGIC.md
* some clang fizes
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update effects.json
* further improvements
* Apply suggestions from code review
* Apply suggestions from code review
* fix tests and hardcoded effects using old smoke effect
* code is super confusing
* Convert integer parsing test to use normal TEST_CASEs
* Rename test name too similar to another
* Test to enforce normalized test names
* Normalize TEST_CASE names (scripted)
* Normalize avatar in iuse_test.cpp to create bodyparts for effects
./tests/cata_test --rng-seed 1686796277 "item cannot contain contents it already has","Sawed off fits in large holster","bag with restrictions and nested bag doesn't fit too large items","pocket_leak","stacking_over_time","item length sanity check","techniques when wielded","armor rigidity","armor_stats","book info","food character is allergic to","list of item actions","tool info","pocket info units - imperial or metric","ammo restriction info","tool transform when activated","eyedrops","antifungal","antiparasitic"
* Put water in bottles in crafting_test
./tests/cata_test --rng-seed 1686797449 "check amphetamine addiction effects","check_monster_behavior_tree_locust","check_monster_behavior_tree_theoretical_absorb","Bionic power capacity","bionic UIDs","bionic weapons","included bionics","fueled bionics","cardio is and isn't affected by certain traits","total crafting time with or without interruption","prompt for liquid containers - crafting 1 makeshift funnel","prompt for liquid containers - batch crafting 3 makeshift funnels","recipes inherit rot of components properly"
* Clear map in item degradation tests
./tests/cata_test --rng-seed 1686874819 "check mutagen addiction effects","body_part_sorting_all","body_part_sorting_main","mtype_species_test","cube_direction_add_om_direction","cube_direction_add_int","cube_direction_subtract_int","Damage indicator thresholds","Degradation on spawned items"
* Use invalidation function instead of moves hack
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++
Resolves a TODO on that constructor, and one more TODO elsewhere due to
the resulting refactoring.
time_point was implicitly convertible from int. This led to unclear
code. In particular, the item constructor took a time_point and a
quantity, and these two ints appeared adjacent with no obvious way to
see what they meant at call sites.
Make the constructor explicit, so the conversion is no longer implicit.
Update the rest of the code accordingly.
In most cases switched from 0 to calendar::turn_zero, which is
equivalent. In a couple of places, used start_of_cataclysm instead,
when it seemed more appropriate (such as birthday of toilet water).
It's possible there are more cases which should have been something
other than turn_zero.
* Inhaler fix
Added pocket data to Inhaler, and ammo type for albuterol.
Copied the style of Oxygen Tank for the inhaler, and the style of oxygen for the albuterol.
* update the inhaler test
Co-authored-by: KorGgenT <curtis.r.merrill@gmail.com>