diff options
author | Yorhel <git@yorhel.nl> | 2019-06-26 12:49:55 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-06-26 12:49:55 +0200 |
commit | 5d98346cb7163557c55ff2c850a6362edb9772ba (patch) | |
tree | ed3bc27acdfda2e7191ae6c2f1b1948b7812c78a /data/js | |
parent | 4d67310a2cb148925b6f8ba96a4fade124e83854 (diff) |
Traits: Split "meta" field into "searchable" and "applicable"
Diffstat (limited to 'data/js')
-rw-r--r-- | data/js/chartraits.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/js/chartraits.js b/data/js/chartraits.js index 05f6e53d..968b68ee 100644 --- a/data/js/chartraits.js +++ b/data/js/chartraits.js @@ -26,7 +26,7 @@ function ctrLoad() { tr.appendChild(tag('td', { style: 'text-align: right; padding-right: 5px'}, 'i'+item.getAttribute('id'))); tr.appendChild(tag('td', tag('b', {'class':'grayedout'}, g), item.firstChild.nodeValue, - tag('b', {'class':'grayedout'}, item.getAttribute('meta')=='yes' ? 'meta' : ''))); + tag('b', {'class':'grayedout'}, item.getAttribute('applicable')=='no' ? 'not applicable' : ''))); }, ctrFormAdd); } @@ -67,8 +67,8 @@ function ctrFormAdd(item) { break; if(i < l.length) alert('Selected trait is already present.'); - else if(item.getAttribute('meta') == 'yes') - alert('Meta traits can\'t be used here.'); + else if(item.getAttribute('applicable') == 'no') + alert('This trait can\'t be used here.'); else ctrAdd(item, Math.floor(item.getAttribute('defaultspoil'))); return ''; |