Files

24 lines
365 B
Python

from dataclasses import dataclass, field
from components import (
Health,
Satiety,
Name,
Hydration,
Hygiene,
Tags,
)
from libs.ecs import World
def create_pet(world: World, name: str):
return world.spawn(
Name(name),
Health(100),
Satiety(80),
Hydration(80),
Hygiene(80),
Tags(),
)