diff options
| author | historia <[not public]> | 2026-07-13 16:10:40 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-13 16:10:40 -0400 |
| commit | 3274b700a6f655b8ecc3505e814ac5d782ae6ffe (patch) | |
| tree | e669b47726f8cb93b75c7df85997cc8556009f20 /internal/admin/static/mobeditor.js | |
| parent | 93a412aed2b11406399504c81d6d19ed1341908a (diff) | |
| download | thehouseoficarus-3274b700a6f655b8ecc3505e814ac5d782ae6ffe.tar.gz | |
feat(admin): reminder text for color tags and item variables, improve placeholder text
Diffstat (limited to 'internal/admin/static/mobeditor.js')
| -rw-r--r-- | internal/admin/static/mobeditor.js | 11 |
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; |
