- Since the marloss stuff did a lot of stuff i had to add a few new affects to not change the old logic
- These include: u_add_addiction, u_lose_addiction, u_vomit (that one is evil :o ), u_fall_asleep, u_heal_all, u_hurt_all, u_set_hunger, u_mod_healthy, u_fil_stomach, u_marlossify (i went of the name already existing for that) and u_add_memorial
- I also added what they do to the documentation EFFECT_ON_CONDITION.md
- The reason for that is that the callback functions that triggered the effect on eating a seed or beery were not called anymore aka dead code
- I also saw that the EOC's for the addictions already existed and used those.
- This allowed me to remove the old / dead code from the iuse.h and iuse.cpp. Same thing in the item_factory.cpp
- The f_map_is_passible function in condition.cpp is supposed to make the spores skip walls like the old code does
- Ah yes and a few tests so i dont go insane testing it manually
- I am also very thankful (!) to the Magiclism and Mind over Matter people since i was able to use that as a reference
- Also whoever made the Docs is amazing too!
This took in fact 9 hours of my life... just for anyone wondering
Changes after feedback:
Fixed the janky broken map logic i created to keep the iuse rng logic
Removed the boolean parameter for vomit and marlossify since it did nothing
Moved the daily_health and hunger assertions to math like suggested
Fixed the eating order issue and now it uses a MARLOSS guard in the can_eat function like suggested
Renamed the NPC_AUTOCONSUME flag to MARLOSS to better reflect the actual usage
Adjustd my existing tests and also added for the order of eating and blacking out. This now uses the time_in_future to keep it in a safe order
Also added a test for the marloss refusal
Added tests in for the new hunger and daily heath math parsers
* Remove STATIC macro a-f
Fixes a typo in character_armor where a damage type was somehow being implicitly cast to a bool?
* Remove STATIC macro g-i
Trusts a post 0.H todo comment to do with cables, the PR was huge so I'm just hoping this got migrated properly
* Remove STATIC macro j-z
* Remove make_static.h includes
* Cleanup
* Remove STATIC macro /tests
* Remove comments yesterday me left for today me
* Update clang for STATIC macro removal
* Cleanup round 2
* Cleanup round 2
The A-Z before a-z thing gets me every time >-<
* get rid of npctalk_var_ prefix for eoc variables
* cleanup after #77055
* deprecate more of type and context
* migrate item vars, make migration happen only once
* doc updates
* migrate u/npc/monster variables
* fix context var migration
* remove `substr( 12 )` in math parser
* move migration to a single function where possible
* no auto
* please clang
* Please clang more
* fix submap load test
* clean up after #77656
* cleanups after #77520
* Unify all run_eocs in a single eoc function
* add test suite
* fix typo
* handle condition better
* Simplify code, move few big stuff into it's own functions
* fix incorrect return
* fix mistakes that prevent eoc from firing
* rename iteration to iterations
* reflect changes in documentation
* change iteration to iterations in json
* please clang
-events use Character::get_name(), not Character::name
-this worked by coincidence; get_name() returned name OR play_name, but NPCs never have custom names
* typified a bit of map.h/cpp + some dependents
* Macro crasher found by one compiler!
* demanded changes
* stupid wokaround for demanded changes
* Sort out conflict mess
* update batteries
* migrate all removed batteries, clean up
* sprinkle occasional batteries in boxes around the world
* fix density test fail
* fix wrong chemistry on some batteries
* obsolete medium_disposable_cell, replace current medium_battery_cell(D battery) with modern 18650 battery
* fix redefinition of 'itype_medium_battery_cell'
* remove light_disposable_cell, change the names and descriptions of baterries to match what they are
* migrate light_disposable_cell, astyle battery density test
* fix test failures
* swap battery to please ups crafting test
* swap ids for tool batteries to make more sense (and not replace all ids in the entire game)
* migrate removed vehicle parts, fix unreachable cell recipe
* fix missed afs battery