added npc.setMinPointsToSoulStone

This commit is contained in:
1whohears committed 2022-06-08 22:13:30 -05:00
1 parent 5740519ed2
commit b7ef1da0d8
4 files changed
+41 -5

No files matched your search

@@ -56,6 +56,7 @@ public class DataAdvanced {
public String soulStonePlayerName = "";
public boolean refuseSoulStone = false;
public boolean soulStoneInit = false;
public int minFactionPointsToSoulStone = -1;
public DataAdvanced(EntityNPCInterface npc) {
this.npc = npc;
@@ -89,6 +90,7 @@ public class DataAdvanced {
compound.setBoolean("RefuseSoulStone", refuseSoulStone);
compound.setString("SoulStonePlayerName", soulStonePlayerName);
compound.setInteger("MinFactionPointsToSoulStone", minFactionPointsToSoulStone);
return compound;
}
@@ -123,6 +125,7 @@ public class DataAdvanced {
refuseSoulStone = compound.getBoolean("RefuseSoulStone");
soulStonePlayerName = compound.getString("SoulStonePlayerName");
minFactionPointsToSoulStone = compound.getInteger("MinFactionPointsToSoulStone");
}
private HashMap<Integer, DialogOption> getDialogs(NBTTagList tagList) {