diplomacy rules engine