Add EventManager and event handling system; implement event triggering and popup display

This commit is contained in:
2025-08-23 23:38:45 +02:00
parent c0d18507e3
commit cdd944b9b5
16 changed files with 379 additions and 26 deletions

View File

@@ -0,0 +1,23 @@
{
"id": "event_good_harvest",
"title": "Bountiful Harvest",
"description": "A miraculous confluence of weather and soil fertility has led to an unexpectedly large harvest. Our granaries are overflowing!",
"meanTimeToHappen": 120,
"trigger": {
"minFollowers": 100,
"maxCorruption": 50
},
"options": [
{
"text": "A true blessing!",
"tooltip": "Gain a large amount (500) of Faith.",
"effects": [
{
"type": "AddResource",
"targetResource": "Faith",
"value": 500
}
]
}
]
}