akarnokd / open-ig

Free & open-source reimplementation of Imperium Galactica. Download the Installer below the file list!
GNU Lesser General Public License v3.0
244 stars 55 forks source link

Added check when diplomatic relations change with players. #1141

Closed hemoridos closed 1 month ago

hemoridos commented 1 month ago

Added check when diplomatic relations change with players. Now this is only used for stopping fleets mid attack. The function checks if relations improved and if the value is above the Player object's new threshold value "endHostilitiesThreshold". The higher of the two opposing sides' is taken into account.

Fixed a condition that prevented fleets from attacking other fleets. Removed some leftover debug messages.

Should resolve #1135

akarnokd commented 1 month ago

New bug #1143