mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-16 14:24:57 +01:00
Implement bonus potential level monolith talents
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package emu.nebula.game.tower;
|
||||
|
||||
import emu.nebula.proto.PublicStarTower.PotentialInfo;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public class StarTowerPotentialInfo {
|
||||
private int id;
|
||||
private int level;
|
||||
|
||||
public StarTowerPotentialInfo(int id, int level) {
|
||||
this.id = id;
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
// Proto
|
||||
|
||||
public PotentialInfo toProto() {
|
||||
var proto = PotentialInfo.newInstance()
|
||||
.setTid(this.getId())
|
||||
.setLevel(this.getLevel());
|
||||
|
||||
return proto;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user