Here is a start to a diplomacy library. I was doing work on reactions, and I wanted to include a check for war/peace status. I was doing just enough that I figured it would be best to package into a module.
At the moment, it is just checking and setting treaty statuses, but there is certainly more diplomacy related stuff that could be done in the future (e.g. allowing players to give units and cities to other tribes).
At the moment, it is just checking and setting treaty statuses, but there is certainly more diplomacy related stuff that could be done in the future (e.g. allowing players to give units and cities to other tribes).