The-Overlore / lore-machine

MIT License
2 stars 0 forks source link

feat: change storing of realm_entity_id to realm_id + add subscription to the SpawnNpc event #68

Closed edisontim closed 9 months ago

edisontim commented 9 months ago

Positions and names of the realms are determined by the realm_id and not the realm_entity_id. Adds the realm_id to the smart contracts via the PR and stores is in this PR.

PR also includes the subscription to the SpawnNpc event

Refactored a few things as well 😬

edisontim commented 9 months ago

Found a breaking bug in file overlore/llm/natural_language_formatter.py Function _order_accepted_to_nl() Line 57 : """metadata: dict[Any, Any] = str_to_json(str(event[6]))""" Metadata was pushed back to the 8th index.

Same for _combat_outcome_to_nl() Line 34

Fixed in my latest commit