Improved Trait Exclusion Logic v2

This commit is contained in:
Chompstation Bot
2021-02-27 00:21:13 +00:00
parent 66426860bd
commit f097111c56
3 changed files with 41 additions and 1 deletions
@@ -283,6 +283,9 @@
//pref.dirty_synth = 0 //Just to be sure // Commented out because it allow for someone to take a synth-blacklisted trait CHOMP Edit
return TOPIC_REFRESH
if(pref.species in instance.banned_species)
alert("The trait you've selected cannot be taken by the species you've chosen!","Error")
return TOPIC_REFRESH
if(trait_choice in pref.pos_traits + pref.neu_traits + pref.neg_traits)
conflict = instance.name