CatStation/Content.Server/NPC/HTN
Centronias 8ad82dc665
Refactor hunger and thirst systems (#34166)
* ready

* oop forgot the HUD stuff

* woooo examinable generalized tooooo

* oop I forgot to rename the files

* bungled the merge, I guess

* this is called hubris

* Verin's comments

* PR comments

how did I use `ProtoId<> Hunger` in more than a few spots but then just say "thirst can stay a literal :^)"?

also changed a few spots to my beloved
```
functionInvocation(
  one
  param
  per
  line
)
```
```

* Satiation effect condition now with ADDED FUNCTIONALITY?? :o

* tfw you trust the markov chain recommendation because long generic type names are tough q-q

* TFW YOU TRUST THE MARKOV CHAIN BUT IT DOESN'T UNDERSTAND THE DIFFERING SEMANTICS OF MAX AND MIN AHHHHH

* tfw you think to yourself "i need to fix the effects", but then forget to and the code doesn't even compile.

* centralize satiation constants

* other small comments

* The enum is dead.
But at what cost?

* oop

* like 12 more ooperses

* green checks are mine by right; I have performed the rites; I have done my part; you will not deny me this succor

* oops I changed the semantics from `<=` to just `<` and didn't update the tests :)

* serialization has bested me :agony:

also PR comments

* never trust the auto merge :agony:

* literally just this

* force engine back to master because idk why it's different

* fix randomness and update master

* submodule fuckery

* fall before my might

* okay I ran the linter, ARE YOU HAPPY??

* cursed ovis, trouble me no more

* protoman stuff

* inb4 linter bonks me

* break non-critical stuff from the main satiation proto

* ![live crundle reaction](https://preview.redd.it/xh68xqcz518g1.png?width=677&format=png&auto=webp&s=79ba10fe49ec3f8306217732321a7c5429bdfb14)

inb4 this breaks something somewhere lmao

* my two greatest PRs COLLIDE

I wonder why robust says it's changed :hmmclueless

* sanity is at an all-time low

* serialization, I guess

* I don't believe you

* field deltas on class \w*satiation\w*components

* PR comments

* 我做泥團子 😔

* doc + kill one property that's trivially accessible after the threshold caching changes

* fixes

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Co-authored-by: AJCM-git <ajcm_mail@disroot.org>
2026-08-08 22:44:24 +00:00
..
Preconditions Refactor hunger and thirst systems (#34166) 2026-08-08 22:44:24 +00:00
PrimitiveTasks Disposals refactor (#40540) 2026-05-27 04:38:03 +00:00
HTNBranch.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
HTNComponent.cs Fix post-mapinit NPC exception (#40244) 2025-10-07 14:03:45 +00:00
HTNCompoundPrototype.cs Fix prototypes so they pass analyzer checks (#35435) 2025-02-24 15:21:59 +11:00
HTNCompoundTask.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
HTNPlan.cs Shooting NPCs and more (#18042) 2023-08-01 19:48:56 -05:00
HTNPlanJob.cs Fix HTN task ordering bug (#32909) 2025-04-17 22:42:31 +10:00
HTNPlanState.cs Shooting NPCs and more (#18042) 2023-08-01 19:48:56 -05:00
HTNSystem.cs Cleanup: ProtoMan Part 2 - remove Client and Server EntitySystem IPrototypeManager instances (#44416) 2026-06-29 21:33:56 +00:00
HTNTask.cs Allow the creation of recursive HTNs (#30138) 2024-07-30 12:18:53 +10:00
IHTNCompound.cs Shooting NPCs and more (#18042) 2023-08-01 19:48:56 -05:00
IHtnConditionalShutdown.cs Shooting NPCs and more (#18042) 2023-08-01 19:48:56 -05:00