mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-21 21:23:58 +01:00
Yummy bugfixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user