mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
Rework how quest/achievement conditions are handled
This commit is contained in:
@@ -24,7 +24,7 @@ public class ResourceLoader {
|
||||
loadResources();
|
||||
|
||||
// Add hardcoded achievements params
|
||||
AchievementHelper.fixParams();
|
||||
AchievementHelper.init();
|
||||
|
||||
// Done
|
||||
loaded = true;
|
||||
|
||||
@@ -20,8 +20,8 @@ public class AchievementDef extends BaseDef {
|
||||
private int Qty1;
|
||||
|
||||
// Custom params
|
||||
private transient int param1 = -1;
|
||||
private transient int param2 = -1;
|
||||
private transient int param1;
|
||||
private transient int param2;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
@@ -34,11 +34,11 @@ public class AchievementDef extends BaseDef {
|
||||
}
|
||||
|
||||
public boolean hasParam1() {
|
||||
return this.param1 >= 0;
|
||||
return this.param1 > 0;
|
||||
}
|
||||
|
||||
public boolean hasParam2() {
|
||||
return this.param2 >= 0;
|
||||
return this.param2 > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user