stash starting inv that doesn't fit
fix save load order
initialize string hint in android build to none
reuse free assigned invlet and move it
Update npc.cpp
Update character_inventory.cpp
Update src/avatar.cpp
Update src/npc.cpp
Update src/avatar.cpp
Co-Authored-By: dobbry-vechur <dumbkevin@proton.me>
* Tests are run once for each mod set
* Remove the --mods from build matrix param and add it to test invocation
* Update .github/workflows/matrix.yml
* Update .github/workflows/matrix.yml
* Update .github/workflows/matrix.yml
* Update .github/workflows/matrix.yml
* In tests, eoc_selector cancels or selects 1st item
* Return a simpler lambda early instead if we're in test mode
* Update .github/workflows/matrix.yml
* Update .github/workflows/matrix.yml
* Update .github/workflows/matrix.yml
* Update .github/workflows/matrix.yml
* Add custom event send function support to check_memorial
* Fix npc_talk_test sender
* Fix stats_tracker_test sender
* astyle
* May it please the IWYU
* stats_tracker_count_events test: clean up any existing mobs before test
* stats_tracker_count_events test: well why don't we clean the whole map instead
* stats_tracker_count_events test: just nuke the world
* Apply suggestion from @Maleclypse
* Apply suggestion from @Maleclypse
* I guess spawn_test_monster lives in map_helpers_tests.h now
* Wy u iwyu
* Update matrix.yml
* Update matrix.yml
* More XE test fixes: golem weight, remove plantkin_parchment from known bad uncrafts
* Nutrition info and repair info tests use their own test items
* Appease clang-tidy
* Replace nether cult cabin headless corpse with headful due to mystery test failures
* Strix talons don't need NAILS as prerequisite
* Add Xedra field office to terrain coverage test whitelist
---------
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
* refactor wield
* refactor wield
* rename wield_new, replace tests
* return early
* fix test and .h var name
* add unwield from game.wield
add_msg_if_player
* remove references to u.
* small fixes
* missing ;
* fix unwield
* fix test
* remove_old for compatibility
* wrong paranthesis
* correct wield_new
* use more wield_new, remove some reminder comments
* fix craft
* fix wielding from reloading
* remove commented out code
* rename weapon -> wielded
* IWYU
* fix wrong move cost
use correct wield for 'one of the bottles is wielded' test
* remove debug msg
* fix tests / clang-tidy
* I hate those tests
* fex 2/3 tests
* please let this be the last test
* clang-tidy
* apply some reviews, remove reminder comments
* re-work; overload item_location from item,
* fix missing item replacement
* fix using item after removing
* revert unecessary changes
* fix missed revert
* move steal check to avatar overload
* this time for real
* extend wield( item_location loc)
* fix
* forgot to do the actual wielding
* fix moves test, apply clang-tidy
* correct obtain cost, doc
* clang-tidy, cleaner conditional
* ordering
* move to std::optional instead of default
* fix optional
* fix 2
---------
Co-authored-by: marilynias <marilynias57+github@gmail.com>
* 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
* Converted coordinate_conversions.h usages
* missed to remove an 'inline'
* sorting out merge issues
* Update src/iexamine.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* should alternate lines from the two sources in merge
---------
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
* Add `calories()` math function
* add assigning function
* remove u_val version of the kcal checks
* replaces all instances of u_val('kcal') with new function
* document change
* fix clang tidy error
* Update src/math_parser_diag.cpp
Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
* Update src/math_parser_diag.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* resolve the rest of shiv, fix (potentially) few tests
* missed the zero
* remove percent calories assigning since you can't assign calories as percent anymore
* remove math kcal test because it's not a shim
* the way this test is made drive me insane
* i was told this can fix the test
* spare me
* now this one is my fault
* fix MoM using old syntax
* Do floating point math
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
* get rid of magic number
* revert `Do floating point math` because i don't want static cast all the returns in the function.
better approach would be divide this function in two, one for raw value that return int, one for percent value that return double
or function that return healthy kcal directly
* add `-> double`
* Update src/math_parser_diag.cpp
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
---------
Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Instead of bypassing the normal training methods, by default train the
difference between the old value and the new value. If an argument is
added, revert to the old behavior (and allow silly things like negative
training).
This is scruffy and probably not very idiomatic for EOC stuff.
* 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>
for all files that iwyu reports as (it should add or remove "input.h" or "input_context.h")
{
add / remove "input.h" and "input_context.h" according to iwyu;
remove everything iwyu reports to remove;
while (doesn't compile) {add directly what needs to be added};
/* note: thanks to indirect includes, we don't need to include most of what iwyu reports
we obey iwyu only for "input.h" and "input_context.h", everything else is a suggestion
if it doesn't compile without it */
}
* more math
* more math
* a bit more
* compare_int to be gone
* compare_int to be gone
* and more
* compare_num be gone
* arithmetic be gone
* lint
* fix stuff
* fix stuff
* revert u_val('power')
* jmathify and fix addictions
* Apply suggestions from code review
Co-authored-by: andrei <68240139+andrei8l@users.noreply.github.com>
* migrate u_know_jaryi, mention talked_to_hub and know_jaryi should be ported to u_val
* revert item_rad RAD_DETECT
* replace the only place with spell level school; add to another place because i can
* "=" -> "=="
* Update data/json/npcs/TALK_TEST.json
Co-authored-by: andrei <68240139+andrei8l@users.noreply.github.com>
* lint
* replace all addiction formulas to use same jmath
---------
Co-authored-by: andrei <68240139+andrei8l@users.noreply.github.com>
* Cleanup and small logic adjustments
rename memory function to match other caches
fix a small oversight with melee engagement
Adjust swarming range to use weapon ranges instead of arbitrary numbers
* missed a word
* astyle
* monster difficulty assessment adjustments
added armour calculations
added some special attack calculations
* fix? npc yo-yo behaviour when repositioning
* minor fix
* allow NPCs to pursue hit-and-run enemies
* astyle
* Change several NPC default settings
* don't pulp if far from player
* assstyle
* fix bugs, balance changes. The usual.
* pulping corpses seeks within engagement distance
* revert monster diff changes, for now
We can return here later but I want this PR done.
* update test
* fix two clang errors, one test left
* Update npc_talk_test.cpp
set tests to use a flag that's less likely to change. It is unlikely we'll set "forbid engagement" to default to on.
* Update npc_talk_test.cpp
* Update npc_talk_test.cpp
try disabling this line of the test because I have a headache
* Update npc_talk_test.cpp
* Update TALK_TEST.json
* Update data/json/npcs/TALK_TEST.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Added UI element to select and return time point
+ utilized it in debug menu
* Reworked scenario calendar
- removed `random` calendar entries from scenarion definitions
- allowed free selection of cataclysm and game start dates in new character menu
- updated UI in new character menu
- fixed start date related tests
- updated docs