Files
andors-trail/AndorsTrailEdit/partials/table_item.html

216 lines
13 KiB
HTML

<h3>Items</h3>
<label class="checkbox"><input type="checkbox" ng-model="settings.iconID" />Icon</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.id" />Id</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.name" />Name</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.category" />Category</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.displaytype" />Display type</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.hasManualPrice" />Has manual price</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.price" />Base market cost</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.hasEquipEffect" />Has equip effect</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseMaxHP" />+MaxHP</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseMaxAP" />+MaxAP</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseMoveCost" />Increase move cost</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseUseItemCost" />Increase use item cost</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseReequipCost" />Increase re-equip cost</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseAttackCost" />Attack cost</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseAttackChance" />Attack chance</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseAttackDamage" />Attack damage</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseCriticalSkill" />Critical skill</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_setCriticalMultiplier" />Critical multiplier</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseBlockChance" />Block chance</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.equipEffect_increaseDamageResistance" />Damage resistance</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.useEffect" />Use effect</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.hitEffect" />Hit effect</label>
<label class="checkbox"><input type="checkbox" ng-model="settings.killEffect" />Kill effect</label>
<table class="tableeditor">
<thead>
<tr>
<th ng-ds-fade="settings.iconID">Icon</th>
<th ng-ds-fade="settings.id">
<span class="hint hint--top" data-hint="The id is not displayed to the player anywhere. Must be a unique id (no two items may have the same id). Prefer short ids since it keeps savegames smaller.">
Id
</span>
</th>
<th ng-ds-fade="settings.name">Name</th>
<th ng-ds-fade="settings.category">Category</th>
<th ng-ds-fade="settings.displaytype">Type</th>
<th ng-ds-fade="settings.hasManualPrice">Manual price?</th>
<th ng-ds-fade="settings.price">
<span class="hint hint--top" data-hint="Base market cost">Price</span>
</th>
<th ng-ds-fade="settings.hasEquipEffect">
<span class="hint hint--top" data-hint="Item has an effect when equipped">Equip?</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseMaxHP">
<span class="hint hint--top" data-hint="Increase maximum HP">+MaxHP</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseMaxAP">
<span class="hint hint--top" data-hint="Increase maximum AP">+MaxAP</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseMoveCost">
<span class="hint hint--top" data-hint="Increase in AP cost of moving one tile">+MoveCost</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseUseItemCost">
<span class="hint hint--top" data-hint="Increase in AP cost of using items">+UseItemCost</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseReequipCost">
<span class="hint hint--top" data-hint="Increase in AP cost of equipping and un-equipping wearable items">+ReequipCost</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseAttackCost">
<span class="hint hint--top" data-hint="Incease in AP cost of making one attack">AtkCost</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseAttackChance">
<span class="hint hint--top" data-hint="Increase attack chance">+AC</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseAttackDamage">
<span class="hint hint--top" data-hint="Increase attack damage (min - max)">+AD</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseCriticalSkill">
<span class="hint hint--top" data-hint="Increase critical skill">+CS</span>
</th>
<th ng-ds-fade="settings.equipEffect_setCriticalMultiplier">
<span class="hint hint--top" data-hint="Set critical modifier (only for weapons)">CM</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseBlockChance">
<span class="hint hint--top" data-hint="Increase block chance">+BC</span>
</th>
<th ng-ds-fade="settings.equipEffect_increaseDamageResistance">
<span class="hint hint--top" data-hint="Increase damage resistance">+DR</span>
</th>
<th ng-ds-fade="settings.useEffect">
<span class="hint hint--top" data-hint="Item has an effect when using it">Use?</span>
</th>
<th ng-ds-fade="settings.useEffect">
<span class="hint hint--top" data-hint="Increase current HP when using item">+HP</span>
</th>
<th ng-ds-fade="settings.useEffect">
<span class="hint hint--top" data-hint="Increase current AP when using item">+AP</span>
</th>
<th ng-ds-fade="settings.hitEffect">
<span class="hint hint--top" data-hint="Item has an effect when hitting a monster in combat">Hit?</span>
</th>
<th ng-ds-fade="settings.hitEffect">
<span class="hint hint--top" data-hint="Increase current HP when hitting monster in combat">+HP</span>
</th>
<th ng-ds-fade="settings.hitEffect">
<span class="hint hint--top" data-hint="Increase current AP when hitting monster in combat">+AP</span>
</th>
<th ng-ds-fade="settings.killEffect">
<span class="hint hint--top" data-hint="Item has an effect when killing a monster in combat">Kill?</span>
</th>
<th ng-ds-fade="settings.killEffect">
<span class="hint hint--top" data-hint="Increase current HP when killing monster in combat">+HP</span>
</th>
<th ng-ds-fade="settings.killEffect">
<span class="hint hint--top" data-hint="Increase current AP when killing monster in combat">+AP</span>
</th>
<th></th>
</tr>
</thead>
<tbody ui:sortable ng:model="items">
<tr ng-repeat="item in items">
<td ng-ds-fade="settings.iconID"><div ng-tile-image="item.iconID" class="at-input-icon" ng-select-image="item" ng-select-image-dest="item.iconID"></div></td>
<td ng-ds-fade="settings.id"><input type="text" ng-model="item.id" class="at-input-id" /></td>
<td ng-ds-fade="settings.name"><input type="text" ng-model="item.name" class="at-input-name" /></td>
<td ng-ds-fade="settings.category">
<select ng-model="item.category" ng-options="s.name for s in itemCategories"></select>
</td>
<td ng-ds-fade="settings.displaytype">
<select ng-model="item.displaytype">
<option value="ordinary">Ordinary item</option>
<option value="quest">Quest item (yellow)</option>
<option value="legendary">Legendary (green)</option>
<option value="extraordinary">Extraordinary (blue)</option>
<option value="rare">Rare (purple)</option>
</select>
</td>
<td ng-ds-fade="settings.hasManualPrice"><input type="checkbox" ng-model="item.hasManualPrice" ng-true-value="1" ng-false-value="0" ng-change="updateCost(item)" /></td>
<td ng-ds-fade="settings.price">
<input type="text" ng-show="item.hasManualPrice == 0" value="{{getItemCost(item)}}" readonly="readonly" class="at-input-gold" />
<input type="text" ng-show="item.hasManualPrice == 1" ng-model="item.baseMarketCost" class="at-input-gold" />
</td>
<td ng-ds-fade="settings.hasEquipEffect">
<input type="checkbox" ng-model="item.hasEquipEffect" title="Has effect when equipping item?" />
<span ng-show="item.equipEffect.addedConditions.length > 0">*</span>
</td>
<td ng-ds-fade="settings.equipEffect_increaseMaxHP"><input type="text" ng-model="item.equipEffect.increaseMaxHP" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseMaxAP"><input type="text" ng-model="item.equipEffect.increaseMaxAP" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseMoveCost"><input type="text" ng-model="item.equipEffect.increaseMoveCost" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseUseItemCost"><input type="text" ng-model="item.equipEffect.increaseUseItemCost" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseReequipCost"><input type="text" ng-model="item.equipEffect.increaseReequipCost" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseAttackCost"><input type="text" ng-model="item.equipEffect.increaseAttackCost" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseAttackChance"><input type="text" ng-model="item.equipEffect.increaseAttackChance" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseAttackDamage">
<input type="text" ng-model="item.equipEffect.increaseAttackDamage.min" class="at-input-stat-minmax" />
-
<input type="text" ng-model="item.equipEffect.increaseAttackDamage.max" class="at-input-stat-minmax" />
</td>
<td ng-ds-fade="settings.equipEffect_increaseCriticalSkill"><input type="text" ng-model="item.equipEffect.increaseCriticalSkill" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_setCriticalMultiplier"><input type="text" ng-model="item.equipEffect.setCriticalMultiplier" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseBlockChance"><input type="text" ng-model="item.equipEffect.increaseBlockChance" class="at-input-stat" /></td>
<td ng-ds-fade="settings.equipEffect_increaseDamageResistance"><input type="text" ng-model="item.equipEffect.increaseDamageResistance" class="at-input-stat" /></td>
<td ng-ds-fade="settings.useEffect">
<input type="checkbox" ng-model="item.hasUseEffect" title="Has effect when using item?" />
<span ng-show="item.useEffect.conditionsSource.length > 0">*</span>
</td>
<td ng-ds-fade="settings.useEffect">
<input type="text" ng-model="item.useEffect.increaseCurrentHP.min" class="at-input-stat-minmax" />
-
<input type="text" ng-model="item.useEffect.increaseCurrentHP.max" class="at-input-stat-minmax" />
</td>
<td ng-ds-fade="settings.useEffect">
<input type="text" ng-model="item.useEffect.increaseCurrentAP.min" class="at-input-stat-minmax" />
-
<input type="text" ng-model="item.useEffect.increaseCurrentAP.max" class="at-input-stat-minmax" />
</td>
<td ng-ds-fade="settings.hitEffect">
<input type="checkbox" ng-model="item.hasHitEffect" title="Has effect when hitting a target in combat?" />
<span ng-show="item.hitEffect.conditionsSource.length > 0">S</span>
<span ng-show="item.hitEffect.conditionsTarget.length > 0">T</span>
</td>
<td ng-ds-fade="settings.hitEffect">
<input type="text" ng-model="item.hitEffect.increaseCurrentHP.min" class="at-input-stat-minmax" />
-
<input type="text" ng-model="item.hitEffect.increaseCurrentHP.max" class="at-input-stat-minmax" />
</td>
<td ng-ds-fade="settings.hitEffect">
<input type="text" ng-model="item.hitEffect.increaseCurrentAP.min" class="at-input-stat-minmax" />
-
<input type="text" ng-model="item.hitEffect.increaseCurrentAP.max" class="at-input-stat-minmax" />
</td>
<td ng-ds-fade="settings.killEffect">
<input type="checkbox" ng-model="item.hasKillEffect" title="Has effect when killing a target in combat?" />
<span ng-show="item.killEffect.conditionsSource.length > 0">*</span>
</td>
<td ng-ds-fade="settings.killEffect">
<input type="text" ng-model="item.killEffect.increaseCurrentHP.min" class="at-input-stat-minmax" />
-
<input type="text" ng-model="item.killEffect.increaseCurrentHP.max" class="at-input-stat-minmax" />
</td>
<td ng-ds-fade="settings.killEffect">
<input type="text" ng-model="item.killEffect.increaseCurrentAP.min" class="at-input-stat-minmax" />
-
<input type="text" ng-model="item.killEffect.increaseCurrentAP.max" class="at-input-stat-minmax" />
</td>
<td><a ng-click="edit(item)" class="btn"><i class="icon-forward"></i> Edit</a></td>
</tr>
</tbody>
</table>
<div>
<button ng-click="addObj()" class="btn"><i class="icon-plus-sign"></i> Add</button>
</div>
<div class="endSets"> </div>