Esempio n. 1
0
    public int determineCreditLimit(Nation player)
    {
        float assetsToDeptFactor = 2f;

        if (player.Bankrupt == true)
        {
            assetsToDeptFactor = 1f;
        }

        int baseAssets = PlayerCalculator.caclulateBaseAssets(player);
        int amount     = (int)(baseAssets * assetsToDeptFactor / bondSize);

        if (amount < 1)
        {
            return(1);
        }
        else
        {
            return(amount);
        }
    }