Adds Death and Sickness systems

This commit is contained in:
nejdetckenobi committed 2026-10-03 23:55:52 +03:00
1 parent c22a173e52
commit 722bf6d55f
4 files changed
+46 -34

No files matched your search

+11 -6
View File
@@ -1,11 +1,19 @@
from imp import World, create_pet
from systems import SatietySystem, HydrationSystem, HygieneSystem
from systems import (
DeathSystem,
SicknessSystem,
SatietySystem,
HydrationSystem,
HygieneSystem,
)
def test_systems_tick():
world = World()
world.systems.extend(
(
DeathSystem,
SicknessSystem,
HydrationSystem,
SatietySystem,
HygieneSystem,
@@ -14,12 +22,9 @@ def test_systems_tick():
entity = create_pet(world, "karabas")
for _ in range(81):
for _ in range(81 + 35):
world.tick()
components = world.get_components(entity)
print(components)
print(world.registry)
if __name__ == "__main__":