Commit graph

14 commits

Author SHA1 Message Date
ScarKy0
0f46f12599
Move DamageOverlay to an Entity System + Component (#45165)
* may god have mercy upon my soul

* stuff

* Revert "Always raise MobStateChanged on client (#45103)"

This reverts commit 1951b00875.

* keep the cleanup

* fuck you though

* review

* Update Content.Shared/DamageOverlay/SharedDamageOverlaySystem.cs

Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>

* deltas

* queries

---------

Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
2026-08-10 13:27:15 +00:00
ScarKy0
1951b00875
Always raise MobStateChanged on client (#45103)
* lets try this

* sub attribute
2026-08-03 01:44:01 +00:00
DrSmugleaf
8e7bbf5160
Add components to require uncovered mouth and specific mob states for actions (#44680)
* Add components to require uncovered mouth and specific mob states for actions

* Address reviews

* address reviews

* added comments

---------

Co-authored-by: Velken <8467292+Velken@users.noreply.github.com>
2026-07-23 21:19:07 +00:00
Whatstone
9b29477f87
Cleanup: remove more redundantly defined EntitySystem members (#44470)
* redundant members

* catch IonLawSystem instances

* return the ion law sawmill, fix LogMan instances

* SalvageSystem LogManager inst

* IonLawSystem: public Sawmill

* what even is initialization order?
2026-07-02 19:12:23 +00:00
Pieter-Jan Briers
5168b5f3d4
IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00
ArtisticRoomba
376f16504c
Content.Shared EntityQuery<T> dependency injection refactor (#43498)
* part 1

* second pass

* final fix

* last fix i swear

* an even bigger genius

* regex missed this

* should be all of em?

* oops

* yeah

* Revert "should be all of em?"

This reverts commit 4dd54d1b9a76977b4cf8d6008358e4dacdee6eb1.

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2026-04-11 21:30:36 +00:00
Hannah Giovanna Dawson
cdbe92d37d
Update DamageableSystem to modern standards (#39417)
* Update DamageableSystem to modern standards

* DamageContainerId -> DamageContainerID with lint flag

* Replace strings with protoids

* Make CVar subscription declarations all consistently whitespaced

* ChangeDamage -> TryChangeDamage, cope with C# jank

* Revert event signature changes

* Restore a comment

* Re-add two queries

* Init the queries

* Use appearanceQuery in DamageChanged

* Use damageableQuery in TryChangeDamage

* Use damageableQuery in SetDamageModifierSetId

* Final cleanup, fix sandboxing

* Rectify ExplosionSystem:::ProcessEntity's call to TryChangeDamage

* Re-organize DamageableSystem

* first big fuck you breaking change.

* THATS A LOT OF DAMAGE!!!

* Fix test fails

* test fixes 2

* push it

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2025-10-27 19:53:04 +00:00
SlamBamActionman
85a6ac90ba
Add stamina and mob damage playtest modifiers (#35599)
* Add stamina and mob damage playtest modifiers

* Fix typo

* Add FTL

* Review fixes

* Update Content.Shared/Mobs/Systems/MobStateSystem.Subscribers.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-03-21 00:01:35 +01:00
Mervill
3414abb970
Remove unused IoC dependency references. (#31704)
Remove unused IoC dependencies
2024-09-01 23:22:50 +02:00
DrSmugleaf
32e1d1a3b5
Use EntityQuery for mob state system resolves (#29021) 2024-06-16 21:20:54 +10:00
Alfred Baumann
5b8468c9d8
Mobs auto state handlers (#26957)
* Autogenerate MobStateComponentState

* changed CurrentState to DataField, updated DataField attribute for AllowedStates

* Update Content.Shared/Mobs/Components/MobStateComponent.cs

* Update Content.Shared/Mobs/Components/MobStateComponent.cs

---------

Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2024-04-17 20:00:05 +10:00
Leon Friedrich
ac25dd85fc
Fix mob state error (#21431) 2023-11-07 18:30:05 -07:00
metalgearsloth
b9a805b352
Reduce some state handling allocs (#14301) 2023-02-28 08:05:29 -08:00
Jezithyr
eeb5b17b34
Mobstate Refactor (#13389)
Refactors mobstate and moves mob health thresholds to their own component

Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
2023-01-13 16:57:10 -08:00