move merits and othertraits to repeating sections
This commit is contained in:
@@ -943,200 +943,20 @@
|
||||
<!-- MERITS -->
|
||||
<div>
|
||||
<div class="subheader" data-i18n="merits">Merits</div>
|
||||
<div class="input-list">
|
||||
<fieldset class="repeating_merits">
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit1_name" />
|
||||
<input type="text" name="attr_merit_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit1" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit1_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit1_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit1_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit1_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit1_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit1_5"></button>
|
||||
<input type="hidden" name="attr_merit_value" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit_value_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit_value_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit_value_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit_value_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit_value_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit_value_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit2_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit2" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit2_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit2_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit2_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit2_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit2_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit2_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit3_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit3" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit3_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit3_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit3_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit3_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit3_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit3_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit4_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit4" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit4_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit4_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit4_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit4_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit4_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit4_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit5_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit5" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit5_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit5_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit5_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit5_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit5_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit5_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit6_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit6" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit6_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit6_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit6_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit6_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit6_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit6_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit7_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit7" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit7_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit7_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit7_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit7_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit7_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit7_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit8_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit8" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit8_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit8_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit8_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit8_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit8_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit8_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit9_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit9" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit9_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit9_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit9_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit9_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit9_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit9_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit10_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit10" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit10_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit10_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit10_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit10_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit10_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit10_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit11_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit11" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit11_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit11_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit11_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit11_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit11_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit11_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit12_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit12" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit12_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit12_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit12_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit12_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit12_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit12_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit13_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit13" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit13_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit13_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit13_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit13_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit13_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit13_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit14_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit14" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit14_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit14_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit14_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit14_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit14_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit14_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit15_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit15" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit15_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit15_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit15_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit15_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit15_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit15_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_merit16_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_merit16" value="0">
|
||||
<button type="action" class="dot zero" name="act_merit16_0">×</button>
|
||||
<button type="action" class="dot" name="act_merit16_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_merit16_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_merit16_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_merit16_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_merit16_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="horizontal-spacer"></div>
|
||||
<!-- OTHER TRAITS -->
|
||||
@@ -1158,200 +978,20 @@
|
||||
<span class="game-line wod-demon" data-i18n="lore">Lores</span>
|
||||
<span class="game-line homebrew" name="attr_homebrew_abilities"></span>
|
||||
</div>
|
||||
<div class="input-list">
|
||||
<fieldset class="repeating_othertraits">
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait1_name" />
|
||||
<input type="text" name="attr_othertrait_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait1" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait1_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait1_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait1_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait1_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait1_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait1_5"></button>
|
||||
<input type="hidden" name="attr_othertrait_value" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait_value_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait_value_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait_value_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait_value_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait_value_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait_value_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait2_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait2" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait2_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait2_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait2_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait2_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait2_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait2_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait3_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait3" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait3_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait3_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait3_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait3_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait3_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait3_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait4_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait4" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait4_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait4_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait4_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait4_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait4_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait4_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait5_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait5" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait5_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait5_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait5_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait5_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait5_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait5_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait6_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait6" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait6_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait6_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait6_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait6_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait6_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait6_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait7_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait7" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait7_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait7_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait7_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait7_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait7_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait7_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait8_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait8" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait8_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait8_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait8_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait8_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait8_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait8_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait9_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait9" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait9_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait9_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait9_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait9_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait9_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait9_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait10_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait10" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait10_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait10_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait10_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait10_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait10_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait10_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait11_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait11" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait11_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait11_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait11_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait11_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait11_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait11_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait12_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait12" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait12_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait12_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait12_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait12_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait12_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait12_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait13_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait13" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait13_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait13_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait13_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait13_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait13_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait13_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait14_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait14" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait14_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait14_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait14_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait14_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait14_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait14_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait15_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait15" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait15_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait15_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait15_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait15_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait15_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait15_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" name="attr_othertrait16_name" />
|
||||
<div class="dots">
|
||||
<input type="hidden" name="attr_othertrait16" value="0">
|
||||
<button type="action" class="dot zero" name="act_othertrait16_0">×</button>
|
||||
<button type="action" class="dot" name="act_othertrait16_1"></button>
|
||||
<button type="action" class="dot ne-1" name="act_othertrait16_2"></button>
|
||||
<button type="action" class="dot ne-1 ne-2" name="act_othertrait16_3"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3" name="act_othertrait16_4"></button>
|
||||
<button type="action" class="dot ne-1 ne-2 ne-3 ne-4" name="act_othertrait16_5"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<!-- DISCIPLINES -->
|
||||
<div class="game-line vampire">
|
||||
@@ -3770,7 +3410,14 @@
|
||||
const version2Attrs = ["iron_stamina"];
|
||||
const version3Attrs = ["small_framed", "attack", "attack_0_value", "attack_1_value", "attack_2_value", "attack_3_value", "attack_4_value"];
|
||||
const version4Attrs = ["age", "player", "chronicle"];
|
||||
const versionAttrs = ["version", ...version1Attrs, ...version2Attrs, ...version3Attrs, ...version4Attrs]
|
||||
const version5Attrs = ["merit","othertrait"]
|
||||
.map((listName) => new Array(16)
|
||||
.fill(1)
|
||||
.map((_, index) => `${listName}${index + 1}`)
|
||||
.map((item) => [item, `${item}_name`])
|
||||
)
|
||||
.flat(2);
|
||||
const versionAttrs = ["version", ...version1Attrs, ...version2Attrs, ...version3Attrs, ...version4Attrs, ...version5Attrs]
|
||||
.filter((value, index, arr) => arr.indexOf(value) === index);
|
||||
|
||||
getAttrs(versionAttrs, function(v) {
|
||||
@@ -3838,6 +3485,31 @@
|
||||
};
|
||||
}
|
||||
|
||||
if (version < 5) {
|
||||
attrs = {
|
||||
...attrs,
|
||||
...["merit","othertrait"]
|
||||
.map((entryName) => new Array(16)
|
||||
.fill(1)
|
||||
.map((_, index) => `${entryName}${index + 1}`)
|
||||
.filter((item) => v[`${item}_name`])
|
||||
.map((item) => ({
|
||||
entryName,
|
||||
id: generateRowID(),
|
||||
name: v[`${item}_name`],
|
||||
value: v[item]
|
||||
}))
|
||||
)
|
||||
.flat()
|
||||
.reduce((acc, { entryName, id, name, value }) => ({
|
||||
...acc,
|
||||
[`repeating_${entryName}s_${id}_${entryName}_name`]: name,
|
||||
[`repeating_${entryName}s_${id}_${entryName}_value`]: value
|
||||
}), {}),
|
||||
"version": 5
|
||||
};
|
||||
}
|
||||
|
||||
if (Object.keys(attrs).length) {
|
||||
setAttrs(attrs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user