mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-13 04:45:02 +01:00
Implement starting gold monolith research talents
This commit is contained in:
@@ -166,6 +166,12 @@ public class StarTowerGame {
|
||||
this.subNoteDropList.add(id);
|
||||
}
|
||||
|
||||
// Starting gold
|
||||
int money = this.getStartingGold();
|
||||
if (money > 0) {
|
||||
this.getRes().add(GameConstants.STAR_TOWER_GOLD_ITEM_ID, money);
|
||||
}
|
||||
|
||||
// Add cases
|
||||
this.addCase(new StarTowerCase(CaseType.Battle));
|
||||
this.addCase(new StarTowerCase(CaseType.SyncHP));
|
||||
@@ -213,6 +219,20 @@ public class StarTowerGame {
|
||||
return getStageData(stage, floor);
|
||||
}
|
||||
|
||||
public int getStartingGold() {
|
||||
int gold = 0;
|
||||
|
||||
if (this.getManager().hasGrowthNode(10103)) {
|
||||
gold += 50;
|
||||
} if (this.getManager().hasGrowthNode(10403)) {
|
||||
gold += 100;
|
||||
} if (this.getManager().hasGrowthNode(10702)) {
|
||||
gold += 200;
|
||||
}
|
||||
|
||||
return gold;
|
||||
}
|
||||
|
||||
// Cases
|
||||
|
||||
public StarTowerCase getCase(CaseType type) {
|
||||
@@ -702,6 +722,14 @@ public class StarTowerGame {
|
||||
bag.addPotentials(item);
|
||||
}
|
||||
|
||||
for (var entry : this.getRes()) {
|
||||
var res = TowerResInfo.newInstance()
|
||||
.setTid(entry.getIntKey())
|
||||
.setQty(entry.getIntValue());
|
||||
|
||||
bag.addRes(res);
|
||||
}
|
||||
|
||||
return proto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user