mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Rework how quest/achievement conditions are handled
This commit is contained in:
1 parent
a04f3354f7
commit
6f7a92725a
21 files changed
+143
-71
No files matched your search
@@ -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