Updated UI and model to support Actor Condition Immunity.

Overall, a much better UI to tune Actor Condition-based effects on
Dialogues, Items and NPCs.
This commit is contained in:
Zukero
2017-08-28 01:05:19 +02:00
parent de0274a5be
commit 8dc05bd26a
5 changed files with 643 additions and 113 deletions

View File

@@ -21,8 +21,9 @@ public class ActorCondition extends JSONElement {
private static final long serialVersionUID = -3969824899972048507L;
public static final Integer CLEAR_AC_MAGNITUDE = -99;
public static final Integer FOREVER_DURATION = 999;
public static final Integer MAGNITUDE_CLEAR = -99;
public static final Integer DURATION_FOREVER = 999;;
public static final Integer DURATION_NONE = 0;
// Available from init state
//public String id; inherited.

View File

@@ -58,6 +58,7 @@ public class Dialogue extends JSONElement {
dropList,
skillIncrease,
actorCondition,
actorConditionImmunity,
alignmentChange,
giveItem,
createTimer,
@@ -250,6 +251,7 @@ public class Dialogue extends JSONElement {
reward.map = reward.map_name != null ? proj.getMap(reward.map_name) : null;
break;
case actorCondition:
case actorConditionImmunity:
reward.reward_obj = proj.getActorCondition(reward.reward_obj_id);
break;
case alignmentChange: