summaryrefslogtreecommitdiff
path: root/data/js
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-06-26 12:49:55 +0200
committerYorhel <git@yorhel.nl>2019-06-26 12:49:55 +0200
commit5d98346cb7163557c55ff2c850a6362edb9772ba (patch)
treeed3bc27acdfda2e7191ae6c2f1b1948b7812c78a /data/js
parent4d67310a2cb148925b6f8ba96a4fade124e83854 (diff)
Traits: Split "meta" field into "searchable" and "applicable"
Diffstat (limited to 'data/js')
-rw-r--r--data/js/chartraits.js6
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 '';