Fix: small bugs
This commit is contained in:
@@ -72,15 +72,14 @@ public class Sustenance extends EventCard {
|
||||
int NGatherers = player.getNType(CharacterType.GATHERER);
|
||||
|
||||
int NCharDiscount = 0;
|
||||
for(Player p : playerList){
|
||||
for(BuildingCard b : player.buildingCards){
|
||||
if(b.getEffectId() == 1){
|
||||
CharacterType c = ((Building1)b).getIcon();
|
||||
NCharDiscount += p.getNType(c);
|
||||
}
|
||||
for(BuildingCard b : player.buildingCards){
|
||||
if(b.getEffectId() == 1){
|
||||
CharacterType c = ((Building1)b).getIcon();
|
||||
NCharDiscount += player.getNType(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int FoodDebt = NChar - (3 * NGatherers + NCharDiscount);
|
||||
|
||||
if(FoodDebt <= 0){
|
||||
|
||||
Reference in New Issue
Block a user