mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-23 11:49:44 +01:00
Modified the quest editor, in order to allow the creation of a removeQuestProgress reward in any stage of a quest. If the field is emmpty, the stage won't have a this reward. In order to work, the progress must exit in the quest.
This commit is contained in:
@@ -7,7 +7,7 @@ var ATEditor = (function(ATEditor, model, FieldList, _) {
|
||||
+ "hasAbilityEffect|boostMaxHP|boostMaxAP|moveCostPenalty|attackCost|attackChance|criticalChance|criticalMultiplier|attackDamage_Min|attackDamage_Max|blockChance|damageResistance|"
|
||||
+ "];"
|
||||
);
|
||||
model.quests.legacyFieldList = new FieldList("[id|name|showInLog|stages[progress|logText|rewardExperience|finishesQuest|]|];");
|
||||
model.quests.legacyFieldList = new FieldList("[id|name|showInLog|stages[progress|logText|rewardExperience|removeQuestProgress|finishesQuest|]|];");
|
||||
model.items.legacyFieldList = new FieldList("[id|iconID|name|category|displaytype|hasManualPrice|baseMarketCost|"
|
||||
+ "hasEquipEffect|equip_boostMaxHP|equip_boostMaxAP|equip_moveCostPenalty|equip_attackCost|equip_attackChance|equip_criticalChance|equip_criticalMultiplier|equip_attackDamage_Min|equip_attackDamage_Max|equip_blockChance|equip_damageResistance|equip_conditions[condition|magnitude|]|"
|
||||
+ "hasUseEffect|use_boostHP_Min|use_boostHP_Max|use_boostAP_Min|use_boostAP_Max|use_conditionsSource[condition|magnitude|duration|chance|]|"
|
||||
@@ -94,7 +94,7 @@ var ATEditor = (function(ATEditor, model, FieldList, _) {
|
||||
|
||||
|
||||
function convertQuest(obj) {
|
||||
// [id|name|showInLog|stages[progress|logText|rewardExperience|finishesQuest|]|];
|
||||
// [id|name|showInLog|stages[progress|logText|rewardExperience|removeQuestProgress|finishesQuest|]|];
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
<th><span class="hint hint--top" data-hint="This number will not be displayed to the player. Must be some unique number for this quest though. Prefer values from 10-100.">Progress</span></th>
|
||||
<th>Logtext</th>
|
||||
<th><span class="hint hint--top" data-hint="Reaching this quest stage gives this much experience">Experience</span></th>
|
||||
<th><span class="hint hint--top" data-hint="Finishing this stage will get you back to a specified progress">Remove quest progress</span></th>
|
||||
<th>Finishes quest</th>
|
||||
<th></th>
|
||||
</tr></thead>
|
||||
@@ -30,6 +31,7 @@
|
||||
<td><input type="text" size="3" ng-model="stage.progress" class="at-input-stat"/></td>
|
||||
<td><textarea rows="2" cols="40" ng-model="stage.logText"></textarea></td>
|
||||
<td><input type="text" size="7" ng-model="stage.rewardExperience" class="at-input-stat"/></td>
|
||||
<td><input type="text" size="7" ng-model="stage.removeQuestProgress" class="at-input-stat"/></td>
|
||||
<td><input type="checkbox" ng-model="stage.finishesQuest" ng-true-value="1" ng-false-value="0" /></td>
|
||||
<td><a ng-click="removeQuestStage(stage)" class="btn btn-mini" title="Remove row"><i class="icon-trash"></i></a></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user