File tree Expand file tree Collapse file tree
ZkLobbyServer/SpringieInterface Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ public static LobbyHostingContext GetDedicatedServerStartSetup(LobbyHostingConte
100100 ret . ModOptions [ "planet" ] = planet . Name ;
101101 ret . ModOptions [ "pw_galaxyTurn" ] = galaxy . Turn . ToString ( ) ;
102102
103- ret . ModOptions [ "pw_baseIP" ] = GlobalConst . BaseInfluencePerBattle . ToString ( CultureInfo . InvariantCulture ) ;
103+ var attackerCount = context . Players . Count ( x => ! x . IsSpectator && x . AllyID == 0 ) ;
104+ ret . ModOptions [ "pw_baseIP" ] = ( GlobalConst . BaseInfluencePerBattle + attackerCount * GlobalConst . InfluencePerAttacker ) . ToString ( CultureInfo . InvariantCulture ) ;
104105 ret . ModOptions [ "pw_dropshipIP" ] = planet . GetEffectiveShipIpBonus ( attacker ) . ToString ( CultureInfo . InvariantCulture ) ;
105106 ret . ModOptions [ "pw_defenseIP" ] = planet . GetEffectiveIpDefense ( ) . ToString ( CultureInfo . InvariantCulture ) ;
106107 ret . ModOptions [ "pw_attackerIP" ] = ( planet . PlanetFactions . FirstOrDefault ( x => x . FactionID == attacker . FactionID ) ? . Influence ?? 0 ) . ToString ( CultureInfo . InvariantCulture ) ;
You can’t perform that action at this time.
0 commit comments