Yummy bugfixes

This commit is contained in:
Cadyn
2020-10-27 19:58:49 -07:00
parent 2fde2bba09
commit 947fe850ff
5 changed files with 21 additions and 12 deletions
@@ -184,9 +184,12 @@
return TOPIC_REFRESH
else if(href_list["clicked_pos_trait"])
var/traitpath = text2path(href_list["clicked_pos_trait"]) //CHOMPEdit
var/datum/trait/trait = text2path(href_list["clicked_pos_trait"])
var/choice = alert("Remove [initial(trait.name)] and regain [initial(trait.cost)] points?","Remove Trait","Remove","Cancel")
if(choice == "Remove")
if(traitpath == /datum/trait/linguist) //CHOMPEdit
pref.num_languages = 0 //CHOMPEdit
pref.pos_traits -= trait
return TOPIC_REFRESH
@@ -287,7 +290,8 @@
alert("You cannot take this trait and [conflict] at the same time. \
Please remove that trait, or pick another trait to add.","Error")
return TOPIC_REFRESH
if(path==/datum/trait/linguist) //CHOMPEdit
pref.num_languages = 12 //CHOMPEdit
mylist += path
return TOPIC_REFRESH