sman1975
Emperor
Finished the Black Death and reworked Storms at Sea. Rewrote several shared functions, to make it easier to reuse the content for different events that have similar outcomes.
For example, Storms damages across a wide area (up to 5x5) but on on sea tiles. Black death also reaches a wide area (6x6) but damages both land and sea units.
The logic to implement the damage has been pushed into a reusable function that is highly selective as to size and damage severity. So if I add a new event that needs to damage all aircraft in a 2x2 square, the code it done.
I'll put this reusability to the test on the "Supervolcano" global event I'll try next.
After that is a rework of the Maunder Minimum as a global event (the single-civ version is already done, which I'll rename into some other food-damaging event), so hopefully the rework won't be too painful.
I think these are my last 2 before working the ingame events.
A sample of the effects of a "moderate" Black Death event:

Formatting isn't final, but the working parts of the code are getting there.
For example, Storms damages across a wide area (up to 5x5) but on on sea tiles. Black death also reaches a wide area (6x6) but damages both land and sea units.
The logic to implement the damage has been pushed into a reusable function that is highly selective as to size and damage severity. So if I add a new event that needs to damage all aircraft in a 2x2 square, the code it done.
I'll put this reusability to the test on the "Supervolcano" global event I'll try next.
After that is a rework of the Maunder Minimum as a global event (the single-civ version is already done, which I'll rename into some other food-damaging event), so hopefully the rework won't be too painful.
I think these are my last 2 before working the ingame events.
A sample of the effects of a "moderate" Black Death event:

Formatting isn't final, but the working parts of the code are getting there.