Got the text version up and running, had to make a bunch of methods to get it running though
This commit is contained in:
@@ -96,12 +96,9 @@ public class ShipWarfareLogic extends Player {
|
||||
* @return the loot for defeating the fleet
|
||||
*/
|
||||
public int calculateLoot() {
|
||||
|
||||
Random randomValue = new Random();
|
||||
int calculateLoot;
|
||||
calculateLoot = (startingShips * 100) + randomValue.nextInt(startingShips) * 200;
|
||||
super.setMoney(super.getMoney() + calculateLoot);
|
||||
return calculateLoot;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user