mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
Fix basic trials not rewarding materials
This commit is contained in:
@@ -19,7 +19,6 @@ import emu.nebula.proto.Public.WeekBossLevel;
|
||||
import it.unimi.dsi.fastutil.ints.Int2IntMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Entity(value = "instances", useDiscriminator = false)
|
||||
@@ -33,8 +32,8 @@ public class InstanceManager extends PlayerManager implements GameDatabaseObject
|
||||
private Int2IntMap charGemLog;
|
||||
private Int2IntMap weekBossLog;
|
||||
|
||||
@Setter
|
||||
private transient int curInstanceId;
|
||||
private transient int rewardType;
|
||||
|
||||
@Deprecated // Morphia
|
||||
public InstanceManager() {
|
||||
@@ -54,6 +53,15 @@ public class InstanceManager extends PlayerManager implements GameDatabaseObject
|
||||
this.save();
|
||||
}
|
||||
|
||||
public void setCurInstanceId(int id) {
|
||||
this.setCurInstanceId(id, 0);
|
||||
}
|
||||
|
||||
public void setCurInstanceId(int id, int rewardType) {
|
||||
this.curInstanceId = id;
|
||||
this.rewardType = rewardType;
|
||||
}
|
||||
|
||||
public void saveInstanceLog(Int2IntMap log, String logName, int id, int newStar) {
|
||||
// Get current star
|
||||
int star = log.get(id);
|
||||
|
||||
Reference in New Issue
Block a user