79 Commits

Author SHA1 Message Date
RenechCDDA bf08a4a6ce Massively expand crafting faults (#89559)
* Massively expand crafting faults

* Massively expand crafting faults
2026-11-15 22:53:26 -06:00
Standing-Storm a91f88cfb2 [MoM] Telepathic damage causes headache wounds (#89236) 2026-10-23 18:53:41 -05:00
Tektolnes fd04163152 add immune_inside 2026-10-17 07:59:48 -04:00
RenechCDDA a7f398edc4 Add more trauma
-Guilt death "spells" always hit, have infinite range
-Trauma is a new tracked value for characters, representing "temporary" trauma that you can work through, with time. It is added to deadening from guilt kills to calculate your total morale modifier.
-EOC support for getting/setting trauma
-Guilt kills give 1 trauma and 1 deadening.
-Professions can start with trauma.
-Some actions may cause trauma (butchering human bodies...)
2026-10-07 18:44:27 -04:00
Johnson 02413058cc Feature: item faults indication (#88237)
* Feature: item faults indication

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Fixed CI warnings

* Fixed CI warnings \#2

* Move fault coloring into item::tname() to avoid overriding durability colors

* Fixed IWYU warning

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-08 21:54:35 -05:00
MrDraMaster ae5efec1a6 Remove obsolete example line (#87978) 2026-07-12 08:05:57 -04:00
OromisElf 6915b5638d removed edible tag documentation from materials
edible tag got removed from materials which wasn't reflected in json_info
2026-07-12 00:33:22 +02:00
Fris0uman 958b75f89b Offset spawn (#87342)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tektolnes <43859252+Tektolnes@users.noreply.github.com>
Co-authored-by: Fris0uman <fris0uman@users.noreply.github.com>
Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>
2026-06-13 17:20:58 +02:00
GuardianDll 90f3d33b92 make bodypart being able to modify pain applied to it 2026-06-02 19:28:11 +02:00
Mihály Verhás 9cd542fcaa Add color field to fault.h (#87053)
* Add color field to fault.h, defaults to 'bad' but should support 'good' and 'neutral'

* Add ;

* Documentation

* Documentation
2026-05-26 23:10:09 -05:00
Tektolnes 9040d26979 replaced_bodyparts field for bionics and infrastructure for automatically removing dependent bionics when removing a bionic limb (#87081)
* bionics_conflicts

* Update JSON_INFO.md

* Update src/bionics.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* switch-strategies

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* removing a limb removes installed CBMs

* Update bionics.cpp

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-19 00:18:42 -05:00
Maleclypse afe3f29014 Blocking Fields (#86820)
* Weak to JSON Object in fields

* Block Mtypes

* Apply suggestions from code review

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>

* document

---------

Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>
2026-05-12 14:50:44 +02:00
ehughsbaird a2bf0c8174 Use optional for limb_type
And thus make it work properly with inheritance.
2026-05-06 21:50:53 +00:00
Anton Simakov 0852037580 Minor weakpoint tweaks (#86868)
* make weakpoint duration specified in time units

* add test to print the weakpoint distribution

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Please iwyu

* please clang

* please IWYU again

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-06 10:50:51 -07:00
RenechCDDA 6e638deab7 Implement instant_damage for faults 2026-04-15 05:42:07 -04:00
dumb-kevin 664f8b7393 Tool speed modifiers for recipe steps
Items can now define a per-quality speed modifier using the object
quality format: {"id": "SEW", "level": 2, "speed": 0.3}.  The legacy
array format ["SEW", 2] still works (speed defaults to 1.0).

When a recipe step requires a quality, the best available tool's speed
modifier scales that step's time.  A mixer with speed 0.5 on FOOD_PREP
halves mixing time without affecting baking or rising.

- item_quality struct on itype (replaces map<quality_id, int>)
- item_quality_reader preserving copy-from / extend / relative / delete
- item::get_quality_speed() mirroring get_quality() resolution
- best_quality_speed_modifier() scanning crafting inventory
- compute_tool_speeds() producing per-step vector
- batch_time() and step_budget_moves() with optional tool_speeds
- Speed-aware single-item floor in batch_time()
- do_turn() caching and passing tool speeds
- expected_time_to_craft() incorporating tool speeds for display
- 21 tests, loader validation for speed <= 0
2026-03-19 18:50:08 +04:00
Standing-Storm ee583ad1ba Make bird wings limbs (#85730)
* Initial commit

* Increase weighting of pecking

* Remove unused flag

* Clarify power_efficiency description

* Update swat armor for wings

* Update tests/iteminfo_test.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update tests/iteminfo_test.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Faux fur suit

* Update tests/iteminfo_test.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update tests/iteminfo_test.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Restore old faux fur suit test

* Update tests/iteminfo_test.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-12 11:22:38 -07:00
thaelina d1cd89e326 rename skill properties 2026-03-04 08:06:30 -06:00
thaelina 20357bf547 Traits can control skill display 2026-03-04 01:33:30 -06:00
Standing-Storm 73e19b525e Add insect arms as separate limbs (#85370)
* Add insect limbs

Co-authored-by: name <Venera3@users.noreply.github.com>

* Add sublimbs

* Remove obsoleted fields

* Add drench/drying

* Remove references to nonexistent `drying_capacity`

* Phrasing, remove encumbrance penalties (insect limbs now have limb score penalties)

* Fixes

* Rename tarsuses

* Spacing

---------

Co-authored-by: name <Venera3@users.noreply.github.com>
2026-02-23 09:54:52 -06:00
GuardianDll 8051854c07 Bodyparts and mutations can provide tool qualities 2026-02-07 19:48:27 +01:00
Standing-Storm 86855bef63 Merge pull request #85146 from Standing-Storm/crab-rave
Replace integrated crab pincer with replacing your hand with a crab pincer
2026-02-06 18:04:28 -06:00
GuardianDll 852e997d9c Make weather be able to apply passive effects 2026-02-01 15:42:40 +01:00
Anton Simakov 648bad3a58 Expose limb scores to math (#84986)
* Expose limb scores to math

* please clang
2026-01-29 13:17:22 -06:00
RenechCDDA af3f4277d8 Add vehicle_move_penalty_mod to flat tire faults
Add some badly needed debug displays for veh_interact menu

Document vehicle part faults
2026-01-24 15:14:02 -05:00
salartarium 2a178551e4 Fix repeat words and typos (#84290) 2025-12-25 12:10:38 +01:00
Sab Pyrope 04cd71c118 Update docs for mutations split 2025-12-07 21:20:03 +08:00
Sab Pyrope c6a754d0b9 Update docs 2025-11-27 19:08:26 +08:00
HackerVole cf44fd7093 Fix some broken links in docs (#83529) 2025-11-19 20:17:15 +01:00
ehughsbaird b81b780afc terrain/furniture/field bashing can respond to more than bash damage (#81838)
* map/avatar bash return if they can smash

The skill/resistance are only used for this, so just simplify it.

* Use damage/hp for bashed objects

Add functions for bash data to generate damage/hp values, and use those
instead of directly querying str_{min,max}. This allows expanding how
furniture responds to damage in the future.

The bool arguments could be improved, but work well enough.

Sound shouldn't care about the supported/blocked strength, so just
ignore that, it won't be that different.

* Character/map bash respond to all damage types

Pass in a map of damage types and the amount, instead of just a strength
number.

Add a member to damage types that allows specifying how they convert
into bash damage. Right now, this is zero for all types but bash.

There are rough edges right now where this interacts with pathfinding
and monster bashing: those have a strength integer that they just
convert to {bash: strength}

For simplicity, keep a map::bash overload that takes integer strength,
and just converts it bash damage for the real bash function.

Special mention to the {{{}}} constructor, which is
pair{} -> initializer_list{pair{}} -> map{initializer_list{pair{}}}

* Monsters & pathfinding do bash by damage type

Instead of only bash damage.

This enables NPCs to properly pathfind based on their bash damage.

Enable specifying bash skill as more than just an amount of bash damage
for monsters. Not that anyone uses this in repo anyways. Update the
docs, including adding documentation for this feature.

* Allow specifying damage profile for bashing

Not everything will respond the same to attempting to break it in
different ways. Add infrastructure to allow specifying different
"profiles" for damage on bash data. Because there will be a fairly
limited set of these, and many objects will have the same, make a new
type for it, and just refer to it by id.

* Make bashing terrain/furniture deterministic

Because damage is stored, there's no reason to add a bunch of randomness
to this. Just directly apply damage, and update tests.

The "hp" for bash data can be updated to achieve the desired effect,
instead of rng.

* Add fireaxe test for bashing chances

Now that bashing can do multiple damage types, add a test case that uses
a weapon with a large non-bash damage component.

Because only bash is counted now, this doesn't look much different from
discarding the cut damage.

* Add bashing profile for wooden doors

As is seen in the famous documentary _The Shining_, fire axes are
relatively effective at breaking through doors. Add a bash profile that
favors cut damage, and apply it to wooden doors.

Adjust the tests to account for this.
2025-09-27 23:39:42 -05:00
Clarence "Sparr" Risher 2c06deb216 JSONize vehicle part locations 2025-09-17 18:51:27 -04:00
Clarence "Sparr" Risher aff2e2c848 Allow professions with multiple achievement requirements 2025-08-14 11:21:35 -04:00
Maleclypse d0b8e27b35 Merge pull request #82409 from Procyonae/AugmentedAssignmentOperatorsSingleString
Make existing math "augmented" assignment operators single string
2025-08-12 23:18:14 -05:00
Procyonae 2f925af500 Minor doc cleanup 2025-08-12 19:11:31 +01:00
Clarence "Sparr" Risher 6984c69d9c Display construction pre_flags 2025-08-12 13:01:08 -04:00
Clarence "Sparr" Risher 5657c06fac Add type alias for event field 2025-08-08 13:19:10 -04:00
Anton Simakov 809e4136ef Better map bashing (#82207) 2025-08-04 21:41:14 -05:00
ShnitzelX2 2a97a6a732 avatar-only traits/professions from chargen 2025-07-30 20:58:54 -04:00
Procyonae 321f7597a2 Remove outdated connect group docs 2025-07-28 17:23:29 +01:00
Kevin Granade 8e6a9a1819 Expand usage of doctoc for md file table of content generation 2025-07-22 15:22:03 -07:00
BalthazarArgall 84263ce4fb initial commit 2025-07-18 16:35:16 +02:00
GuardianDll 51e235f881 Update the table of contents 2025-07-12 14:34:39 +00:00
RenechCDDA de544dd6a1 "hard" metaprogression requirements for mods 2025-07-11 11:33:17 -04:00
Maleclypse 22ecfa1ae9 Merge pull request #81575 from GuardianDll/faults_affect_encumbrance
make faults able to alter item encumbrance
2025-07-04 12:05:11 -04:00
Kevin Granade b13d177aed Update the table of contents (#81542)
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2025-07-04 13:41:09 +02:00
ehughsbaird 11c588f134 Create dust when smashing furniture and terrain (#81565)
* Allow fields to choose to be moppable

Currently, all liquid fields are moppable. Allow fields that are not
liquid to select that they can also be cleaned with a mop.

* use was_loaded properly for bash and deconstruct

was_loaded indicates whether or not it is the first time this object has
been loaded.

The terrain/furniture loading code was passing the terrain/furniture
was_loaded value, when they could be creating the object and thus it
would be it's first time being loaded.

Pass whether or not the object has been created as the was_loaded value
instead of whether or not the terrain/furniture it's part of has.

* Allow bashed terrain/furniture to create fields

Allow specifying a field and an intensity to spawn that field at when an
object is hit, and when an object is destroyed. The field spawn when it
is hit will also spawn when it is destroyed.

* Add dust and splinters fields for bashed ter/furn

The dust is in the gas phase and can spread - this allows bashing to
spread dust over the place, instead of only in the tile bashed.

Similarly for splinters, but it's less likely to spread, and will try to
spread dust.

* Add dust to everything that splinters

All terrain/furniture that produce "splinter" in their bash results have
been given the dust and splinters field produced on bash.

* Mods furn/terrain smashes into dust

All terrain/furniture in mods that break into splinters produce the dust
and splinters field on bash.
2025-07-03 20:32:35 -07:00
GuardianDll 8a24b62041 make faults able to alter item encumbrance 2025-07-03 18:36:48 +02:00
Procyonae 6e4885815e [Extra Mutation Scenarios] Mutagen glands (#81278)
* Initial version as scenario EoCs

* Trait version with global variables

* Basics down

* Make it work for NPCs starting with the trait

* Add beast to test expandability

* Add a test EoC to check variable values easily

* Forgot math rng always uses floats

* Add abstract mutation and remove base line levels post cooldown

* Rearrange the setup logic

* Add another 23 glands >_<

* Regex to the rescue

* Add them to the scenario and make them neutral so they clog up the menu less

* Add delete so that they cancel cancelling themselves

* Deduplicate checking if a gained mutation is a gland mutation

* Move f_lose_trait documentation directly under f_add_trait

* Add thirst costs and minor crosses_mutation_threshold flavour

* Minor fixes

* Ugly check workaround
2025-07-01 10:18:04 -04:00
I-am-Erk 95eccec11a Update the table of contents 2025-07-01 01:34:46 +00:00
RenechCDDA 0c4a5cb6ad Generic tie-down/haul system for furniture on vehicles (#81501)
* Generic tie-down/haul system for furniture on vehicles

* Various improvements after code review from Ehughsbaird

-Add strength/lifting check when loading furniture, split it up for more specific feedback when something can't be loaded
-Switch the furniture's weight to being a member of the furniture class, loaded from its object (get rid of stored_furniture_weight)
-Don't error/return early on UI display when underlying carried furniture is invalid
-Add a feedback message when trying to unload/load furniture from a broken part
-Use furniture name where possible instead of generically referring to "the furniture"
-Make sure we actually clear the item var when panic aborting

* Break up vehicle::use_tiedown_furniture()

* Allow either furniture or items, but not both

* Tied-down furniture migration, or something
2025-06-30 18:34:10 -07:00