faction table, applying factions to mobs, and querying reactions

This commit is contained in:
Llywelwyn 2023-08-15 15:56:00 +01:00
parent 0375c31acf
commit 76d835021b
11 changed files with 108 additions and 13 deletions

26
raws/factions.json Normal file
View file

@ -0,0 +1,26 @@
[
{
"id": "player",
"responses": {}
},
{
"id": "mindless",
"responses": { "default": "attack" }
},
{
"id": "neutral",
"responses": { "default": "ignore" }
},
{
"id": "hostile",
"responses": { "default": "attack", "hostile": "ignore" }
},
{
"id": "herbivore",
"responses": { "default": "flee", "herbivores": "ignore" }
},
{
"id": "carnivore",
"responses": { "default": "attack", "carnivores": "ignore" }
}
]