From: Erik V. <ev...@us...> - 2009-09-12 09:41:05
|
Update of /cvsroot/rails/18xx/rails/game/specific/_1856 In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv30193/rails/game/specific/_1856 Modified Files: PublicCompany_1856.java OperatingRound_1856.java Log Message: 1856: Deduct $10 per outstanding loan from player worth. Index: OperatingRound_1856.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/specific/_1856/OperatingRound_1856.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** OperatingRound_1856.java 6 Sep 2009 12:27:31 -0000 1.20 --- OperatingRound_1856.java 12 Sep 2009 09:40:56 -0000 1.21 *************** *** 360,364 **** PhaseI postPhase = currentPhase; ! log.debug("+++Phase was "+prePhase.getName()+" now "+postPhase.getName()); if (postPhase != prePhase && postPhase.getName().equals("5")) { finalLoanRepaymentPending.set(true); --- 360,364 ---- PhaseI postPhase = currentPhase; ! if (postPhase != prePhase && postPhase.getName().equals("5")) { finalLoanRepaymentPending.set(true); Index: PublicCompany_1856.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/specific/_1856/PublicCompany_1856.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PublicCompany_1856.java 4 Sep 2009 18:40:30 -0000 1.7 --- PublicCompany_1856.java 12 Sep 2009 09:40:55 -0000 1.8 *************** *** 63,66 **** --- 63,70 ---- if (train.getType().isPermanent()) hadPermanentTrain = true; } + + public int getGameEndPrice() { + return Math.max(0, getMarketPrice() - 10 * getCurrentNumberOfLoans()); + } } |