Got the text version up and running, had to make a bunch of methods to get it running though

This commit is contained in:
2019-04-12 01:07:45 -06:00
parent b4f9ce761c
commit 03ff12b832
13 changed files with 1066 additions and 595 deletions

View File

@@ -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;
}
}