aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/static/mobeditor.js
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/static/mobeditor.js')
-rw-r--r--internal/admin/static/mobeditor.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/internal/admin/static/mobeditor.js b/internal/admin/static/mobeditor.js
index 10b256e..4b136a3 100644
--- a/internal/admin/static/mobeditor.js
+++ b/internal/admin/static/mobeditor.js
@@ -48,8 +48,8 @@ var MOB_SECTIONS = [
['stats.defenses.weakness', 'Weakness', 'select', '(none)|bio|eco|hydro|solar|chaos'],
['stats.defenses.weakness_percent', 'Weakness %', 'number', '50', 'narrow'],
['assassin_level', 'Assassin Lvl', 'number', '1', 'narrow'],
- ['finishing_blow', 'Finishing Blow', 'search', 'e.g. stake', '', null, 'items'],
- ['damage_without', 'Damage Without', 'search', 'e.g. holy_symbol', '', null, 'items'],
+ ['finishing_blow', 'Finishing Blow', 'search', 'stake', '', null, 'items'],
+ ['damage_without', 'Damage Without', 'search', 'holy_symbol', '', null, 'items'],
['size', 'Size', 'text', 'small'],
],
inline: [
@@ -301,9 +301,14 @@ function renderMobCoreCard(data) {
h += ced_renderTags(sec, il, data);
});
h += '<div class="obj-card-grid" style="margin-top:6px">';
+ h += '<div style="display:flex;flex-direction:column">';
h += renderMobField(sec, byKey['unique'], data, -1);
+ h += '</div>';
+ h += '<div style="display:flex;flex-direction:column">';
h += renderMobField(sec, byKey['protected'], data, -1);
h += '</div>';
+ h += '</div>';
+ h += ced_renderTagHelp('color');
return h;
}
@@ -507,7 +512,7 @@ function mobAddArrayItem(cardID) {
var arr = mobData[sec.path] || [];
var empty = {};
sec.fields.forEach(function(f) {
- empty[f[0]] = f[2] === 'checkbox' ? false : (f[2] === 'number' ? 0 : '');
+ empty[f[0]] = f[2] === 'checkbox' ? false : '';
});
arr.push(empty);
mobData[sec.path] = arr;