mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 12:39:05 +00:00
Port Goodbirds Better Dialog / Quest System
This commit is contained in:
1 parent
72f3a1df9e
commit
0134566789
14 files changed
+1232
-8
No files matched your search
@@ -23,6 +23,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
public String text = "";
|
||||
public int quest = -1;
|
||||
public DialogCategory category;
|
||||
public DialogColorData colorData = new DialogColorData();
|
||||
public HashMap<Integer, DialogOption> options = new HashMap<Integer, DialogOption>();
|
||||
public Availability availability = new Availability();
|
||||
public FactionOptions factionOptions = new FactionOptions();
|
||||
@@ -167,6 +168,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
|
||||
availability.readFromNBT(compound);
|
||||
factionOptions.readFromNBT(compound);
|
||||
colorData.readFromNBT(compound);
|
||||
}
|
||||
|
||||
|
||||
@@ -202,6 +204,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
|
||||
availability.writeToNBT(compound);
|
||||
factionOptions.writeToNBT(compound);
|
||||
colorData.writeToNBT(compound);
|
||||
compound.setInteger("ModRev", version);
|
||||
|
||||
compound.setInteger("Color", color);
|
||||
@@ -284,6 +287,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
dialog.npcOffsetX = npcOffsetX;
|
||||
dialog.npcOffsetY = npcOffsetY;
|
||||
dialog.dialogImages = dialogImages;
|
||||
dialog.colorData = colorData;
|
||||
|
||||
for (int slot : options.keySet()) {
|
||||
DialogOption option = options.get(slot);
|
||||
|
||||
Reference in new issue
Block a user