Update of /cvsroot/rails/18xx/rails/game/specific/_1835
In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv4492/rails/game/specific/_1835
Modified Files:
GameManager_1835.java
Log Message:
1835: higher certificate limit if 80% owned.
Index: GameManager_1835.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/game/specific/_1835/GameManager_1835.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** GameManager_1835.java 8 Apr 2010 21:23:47 -0000 1.6
--- GameManager_1835.java 9 Apr 2010 21:26:11 -0000 1.7
***************
*** 64,66 ****
--- 64,77 ----
return prFormStartingPlayer;
}
+
+ public int getPlayerCertificateLimit(Player player) {
+ int limit = playerCertificateLimit.intValue();
+ for (PublicCompanyI company : companyManager.getAllPublicCompanies()) {
+ if (company.getTypeName().equalsIgnoreCase("Major")
+ && company.getPresident() == player
+ && player.getPortfolio().getShare(company) >= 80) limit++;
+ }
+ return limit;
+ }
+
}
|