Thread: [Megameknet-cvs] MegaMekNET/src/server/campaign/commands ScrapCommand.java,1.13,1.14
Status: Inactive
Brought to you by:
mcwizard
From: Helge R. <mcw...@us...> - 2005-04-13 18:14:40
|
Update of /cvsroot/megameknet/MegaMekNET/src/server/campaign/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1236/src/server/campaign/commands Modified Files: ScrapCommand.java Log Message: Remove influence reference Index: ScrapCommand.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/server/campaign/commands/ScrapCommand.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ScrapCommand.java 26 Mar 2005 18:37:54 -0000 1.13 --- ScrapCommand.java 13 Apr 2005 18:14:31 -0000 1.14 *************** *** 51,55 **** if (new Boolean(CampaignMain.cm.getConfig("ScrappingCostsBills")).booleanValue() && CampaignMain.cm.getCurrentTick() >= m.getScrappableUntil()) { mechscrapprize = p.getMyHouse().getPriceForMech(m.getWeightclass(), m.getType(), null) / 3; - int infToScrap = p.getMyHouse().getInfluenceForMech(m.getWeightclass(), m.getType(), null) / 3; if ((p.getMoney() >= mechscrapprize))// && (p.getInfluence() >= infToScrap)) { --- 51,54 ---- *************** *** 57,61 **** //p.addInfluence(-infToScrap); } else { ! CampaignMain.cm.toUser("You cannot afford to scrap this unit. You need " + mechscrapprize + " cbills and " + infToScrap + " influence.", userName, true); return; } --- 56,60 ---- //p.addInfluence(-infToScrap); } else { ! CampaignMain.cm.toUser("You cannot afford to scrap this unit. You need " + mechscrapprize + " cbills.", userName, true); return; } |