mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-01-20 10:21:16 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84e46ffd20 | ||
|
|
9f5666ea6d | ||
|
|
ae5822703a | ||
|
|
9b68ef6679 |
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="WINDOWS-1252" standalone="no"?>
|
<?xml version="1.0" encoding="WINDOWS-1252" standalone="no"?>
|
||||||
<jardesc>
|
<jardesc>
|
||||||
<jar path="ATContentStudio/ATCS_v0.6.11.jar"/>
|
<jar path="ATContentStudio/ATCS_v0.6.12.jar"/>
|
||||||
<options buildIfNeeded="true" compress="true" descriptionLocation="/ATContentStudio/ATCS_JAR.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="false" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
|
<options buildIfNeeded="true" compress="true" descriptionLocation="/ATContentStudio/ATCS_JAR.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="false" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
|
||||||
<storedRefactorings deprecationInfo="true" structuralOnly="false"/>
|
<storedRefactorings deprecationInfo="true" structuralOnly="false"/>
|
||||||
<selectedProjects/>
|
<selectedProjects/>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
!include MUI2.nsh
|
!include MUI2.nsh
|
||||||
|
|
||||||
!define VERSION "0.6.11"
|
!define VERSION "0.6.12"
|
||||||
!define TRAINER_VERSION "0.1.4"
|
!define TRAINER_VERSION "0.1.4"
|
||||||
!define JAVA_BIN "javaw"
|
!define JAVA_BIN "javaw"
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ import com.gpl.rpg.atcontentstudio.ui.WorkspaceSelector;
|
|||||||
public class ATContentStudio {
|
public class ATContentStudio {
|
||||||
|
|
||||||
public static final String APP_NAME = "Andor's Trail Content Studio";
|
public static final String APP_NAME = "Andor's Trail Content Studio";
|
||||||
public static final String APP_VERSION = "v0.6.11";
|
public static final String APP_VERSION = "v0.6.12";
|
||||||
|
|
||||||
public static final String CHECK_UPDATE_URL = "https://andorstrail.com/static/ATCS_latest";
|
public static final String CHECK_UPDATE_URL = "https://andorstrail.com/static/ATCS_latest";
|
||||||
public static final String DOWNLOAD_URL = "https://andorstrail.com/viewtopic.php?f=6&t=4806";
|
public static final String DOWNLOAD_URL = "https://andorstrail.com/viewtopic.php?f=6&t=4806";
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ public class Requirement extends JSONElement {
|
|||||||
clone.state = this.state;
|
clone.state = this.state;
|
||||||
clone.required_obj_id = this.required_obj_id;
|
clone.required_obj_id = this.required_obj_id;
|
||||||
clone.required_value = this.required_value;
|
clone.required_value = this.required_value;
|
||||||
|
clone.negated = this.negated;
|
||||||
clone.required_obj = this.required_obj;
|
clone.required_obj = this.required_obj;
|
||||||
clone.type = this.type;
|
clone.type = this.type;
|
||||||
if (clone.required_obj != null && parent != null) {
|
if (clone.required_obj != null && parent != null) {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ public class KeyArea extends MapObject {
|
|||||||
String requireType = obj.getProperties().getProperty("requireType");
|
String requireType = obj.getProperties().getProperty("requireType");
|
||||||
String requireId = obj.getProperties().getProperty("requireId");
|
String requireId = obj.getProperties().getProperty("requireId");
|
||||||
String requireValue = obj.getProperties().getProperty("requireValue");
|
String requireValue = obj.getProperties().getProperty("requireValue");
|
||||||
|
String requireNegation = obj.getProperties().getProperty("requireNegation");
|
||||||
oldSchoolRequirement = false;
|
oldSchoolRequirement = false;
|
||||||
if (requireType == null) {
|
if (requireType == null) {
|
||||||
String[] fields = obj.getName().split(":");
|
String[] fields = obj.getName().split(":");
|
||||||
@@ -38,7 +39,9 @@ public class KeyArea extends MapObject {
|
|||||||
if (requireType != null) requirement.type = Requirement.RequirementType.valueOf(requireType);
|
if (requireType != null) requirement.type = Requirement.RequirementType.valueOf(requireType);
|
||||||
requirement.required_obj_id = requireId;
|
requirement.required_obj_id = requireId;
|
||||||
if (requireValue != null) requirement.required_value = Integer.parseInt(requireValue);
|
if (requireValue != null) requirement.required_value = Integer.parseInt(requireValue);
|
||||||
|
if (requireNegation != null) requirement.negated = Boolean.parseBoolean(requireNegation);
|
||||||
requirement.state = GameDataElement.State.parsed;
|
requirement.state = GameDataElement.State.parsed;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -98,7 +101,7 @@ public class KeyArea extends MapObject {
|
|||||||
|
|
||||||
public void updateNameFromRequirementChange() {
|
public void updateNameFromRequirementChange() {
|
||||||
if (oldSchoolRequirement && Requirement.RequirementType.questProgress.equals(requirement.type) && (requirement.negated == null || !requirement.negated)) {
|
if (oldSchoolRequirement && Requirement.RequirementType.questProgress.equals(requirement.type) && (requirement.negated == null || !requirement.negated)) {
|
||||||
name = requirement.required_obj_id+":"+((requirement.required_value == null) ? "" : Integer.toString(requirement.required_value));
|
name = (requirement.negated != null && requirement.negated) ? "NOT " : "" + requirement.required_obj_id+":"+((requirement.required_value == null) ? "" : Integer.toString(requirement.required_value));
|
||||||
} else if (oldSchoolRequirement) {
|
} else if (oldSchoolRequirement) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
String futureName = requirement.type.toString() + "#" + Integer.toString(i);
|
String futureName = requirement.type.toString() + "#" + Integer.toString(i);
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ public class ReplaceArea extends MapObject {
|
|||||||
String requireType = obj.getProperties().getProperty("requireType");
|
String requireType = obj.getProperties().getProperty("requireType");
|
||||||
String requireId = obj.getProperties().getProperty("requireId");
|
String requireId = obj.getProperties().getProperty("requireId");
|
||||||
String requireValue = obj.getProperties().getProperty("requireValue");
|
String requireValue = obj.getProperties().getProperty("requireValue");
|
||||||
|
String requireNegation = obj.getProperties().getProperty("requireNegation");
|
||||||
if (requireType == null) {
|
if (requireType == null) {
|
||||||
String[] fields = obj.getName().split(":");
|
String[] fields = obj.getName().split(":");
|
||||||
if (fields.length == 2) {
|
if (fields.length == 2) {
|
||||||
@@ -37,6 +38,7 @@ public class ReplaceArea extends MapObject {
|
|||||||
if (requireType != null) requirement.type = Requirement.RequirementType.valueOf(requireType);
|
if (requireType != null) requirement.type = Requirement.RequirementType.valueOf(requireType);
|
||||||
requirement.required_obj_id = requireId;
|
requirement.required_obj_id = requireId;
|
||||||
if (requireValue != null) requirement.required_value = Integer.parseInt(requireValue);
|
if (requireValue != null) requirement.required_value = Integer.parseInt(requireValue);
|
||||||
|
if (requireNegation != null) requirement.negated = Boolean.parseBoolean(requireNegation);
|
||||||
requirement.state = GameDataElement.State.parsed;
|
requirement.state = GameDataElement.State.parsed;
|
||||||
|
|
||||||
|
|
||||||
@@ -112,7 +114,7 @@ public class ReplaceArea extends MapObject {
|
|||||||
//Don't use yet !
|
//Don't use yet !
|
||||||
public void updateNameFromRequirementChange() {
|
public void updateNameFromRequirementChange() {
|
||||||
if (oldSchoolRequirement && Requirement.RequirementType.questProgress.equals(requirement.type) && (requirement.negated == null || !requirement.negated)) {
|
if (oldSchoolRequirement && Requirement.RequirementType.questProgress.equals(requirement.type) && (requirement.negated == null || !requirement.negated)) {
|
||||||
name = requirement.required_obj_id+":"+((requirement.required_value == null) ? "" : Integer.toString(requirement.required_value));
|
name = (requirement.negated != null && requirement.negated) ? "NOT " : "" + requirement.required_obj_id+":"+((requirement.required_value == null) ? "" : Integer.toString(requirement.required_value));
|
||||||
} else if (oldSchoolRequirement) {
|
} else if (oldSchoolRequirement) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
String futureName = requirement.type.toString() + "#" + Integer.toString(i);
|
String futureName = requirement.type.toString() + "#" + Integer.toString(i);
|
||||||
|
|||||||
@@ -714,7 +714,7 @@ public class DialogueEditor extends JSONElementEditor {
|
|||||||
removeElementListener(requirementObj);
|
removeElementListener(requirementObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (requirement.type != null) {
|
if (requirement != null && requirement.type != null) {
|
||||||
switch (requirement.type) {
|
switch (requirement.type) {
|
||||||
case consumedBonemeals:
|
case consumedBonemeals:
|
||||||
case spentGold:
|
case spentGold:
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public class NPCEditor extends JSONElementEditor {
|
|||||||
private JTextField idField;
|
private JTextField idField;
|
||||||
private JTextField nameField;
|
private JTextField nameField;
|
||||||
private JTextField spawnGroupField;
|
private JTextField spawnGroupField;
|
||||||
|
private JTextField factionField;
|
||||||
private JSpinner experienceField;
|
private JSpinner experienceField;
|
||||||
private MyComboBox dialogueBox;
|
private MyComboBox dialogueBox;
|
||||||
private MyComboBox droplistBox;
|
private MyComboBox droplistBox;
|
||||||
@@ -246,6 +247,7 @@ public class NPCEditor extends JSONElementEditor {
|
|||||||
idField = addTextField(pane, "Internal ID: ", npc.id, npc.writable, listener);
|
idField = addTextField(pane, "Internal ID: ", npc.id, npc.writable, listener);
|
||||||
nameField = addTranslatableTextField(pane, "Display name: ", npc.name, npc.writable, listener);
|
nameField = addTranslatableTextField(pane, "Display name: ", npc.name, npc.writable, listener);
|
||||||
spawnGroupField = addTextField(pane, "Spawn group ID: ", npc.spawngroup_id, npc.writable, listener);
|
spawnGroupField = addTextField(pane, "Spawn group ID: ", npc.spawngroup_id, npc.writable, listener);
|
||||||
|
factionField = addTextField(pane, "Faction ID: ", npc.faction_id, npc.writable, listener);
|
||||||
experienceField = addIntegerField(pane, "Experience reward: ", npc.getMonsterExperience(), false, false, listener);
|
experienceField = addIntegerField(pane, "Experience reward: ", npc.getMonsterExperience(), false, false, listener);
|
||||||
dialogueBox = addDialogueBox(pane, npc.getProject(), "Initial phrase: ", npc.dialogue, npc.writable, listener);
|
dialogueBox = addDialogueBox(pane, npc.getProject(), "Initial phrase: ", npc.dialogue, npc.writable, listener);
|
||||||
droplistBox = addDroplistBox(pane, npc.getProject(), "Droplist / Shop inventory: ", npc.droplist, npc.writable, listener);
|
droplistBox = addDroplistBox(pane, npc.getProject(), "Droplist / Shop inventory: ", npc.droplist, npc.writable, listener);
|
||||||
@@ -1256,6 +1258,8 @@ public class NPCEditor extends JSONElementEditor {
|
|||||||
npcIcon.repaint();
|
npcIcon.repaint();
|
||||||
} else if (source == spawnGroupField) {
|
} else if (source == spawnGroupField) {
|
||||||
npc.spawngroup_id = (String) value;
|
npc.spawngroup_id = (String) value;
|
||||||
|
} else if (source == factionField) {
|
||||||
|
npc.faction_id = (String) value;
|
||||||
} else if (source == dialogueBox) {
|
} else if (source == dialogueBox) {
|
||||||
if (npc.dialogue != null) {
|
if (npc.dialogue != null) {
|
||||||
npc.dialogue.removeBacklink(npc);
|
npc.dialogue.removeBacklink(npc);
|
||||||
|
|||||||
Reference in New Issue
Block a user