Skip to content

Commit

Permalink
Merge pull request DopplerShift13#223 from 00-Steven/languagefixes
Browse files Browse the repository at this point in the history
Fixes linguist quirk not granting a fourth language point
  • Loading branch information
Nerev4r authored Nov 12, 2024
2 parents 0a55acf + 3c3b56c commit 6b212ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

var/list/data = list()

var/max_languages = preferences.all_quirks.Find(TRAIT_LINGUIST) ? MAX_LANGUAGES_LINGUIST : MAX_LANGUAGES_NORMAL
var/max_languages = preferences.all_quirks.Find(/datum/quirk/linguist::name) ? MAX_LANGUAGES_LINGUIST : MAX_LANGUAGES_NORMAL
var/species_type = preferences.read_preference(/datum/preference/choiced/species)
var/datum/species/species = new species_type()
var/datum/language_holder/lang_holder = preferences.get_adjusted_language_holder()
Expand Down Expand Up @@ -125,7 +125,7 @@
*/
/datum/preference_middleware/languages/proc/give_language(list/params)
var/language_name = params["language_name"]
var/max_languages = preferences.all_quirks.Find(TRAIT_LINGUIST) ? MAX_LANGUAGES_LINGUIST : MAX_LANGUAGES_NORMAL
var/max_languages = preferences.all_quirks.Find(/datum/quirk/linguist::name) ? MAX_LANGUAGES_LINGUIST : MAX_LANGUAGES_NORMAL

if(preferences.languages && preferences.languages.len == max_languages) // too many languages
return TRUE
Expand Down

0 comments on commit 6b212ba

Please sign in to comment.