mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Localized Niko Name Checks:
-now the niko name check values are localized
This commit is contained in:
parent
4f4b43dbf3
commit
34f08e10c3
1 changed files with 10 additions and 5 deletions
|
|
@ -16,7 +16,8 @@ module Script
|
|||
|
||||
def self.is_name_swear
|
||||
test_string = $game_oneshot.player_name.downcase
|
||||
if ["fuck", "shit", "ass", "cock", "damn", "penis", "tiddy", "titty", "cunt", "fag", "whore"].any? { |swear| test_string.include? swear }
|
||||
list_of_swears = tr("NAME_SWEARS").to_str.split(",")
|
||||
if list_of_swears.any? { |swear| test_string.include? swear.downcase }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
@ -24,7 +25,8 @@ module Script
|
|||
|
||||
def self.is_name_niko
|
||||
test_string = $game_oneshot.player_name.downcase
|
||||
if test_string == "niko"
|
||||
list_of_niko_names = tr("NAME_NIKOS").to_str.split(",")
|
||||
if list_of_niko_names.any? { |niko_name| test_string == niko_name.downcase }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
@ -32,7 +34,8 @@ module Script
|
|||
|
||||
def self.is_name_like_niko
|
||||
test_string = $game_oneshot.player_name.downcase
|
||||
if ["nico", "nikko", "nicco", "nikoh", "nicoh"].any? { |name| test_string == name }
|
||||
list_of_niko_like_names = tr("NAMES_LIKE_NIKO").to_str.split(",")
|
||||
if list_of_niko_like_names.any? { |niko_like_name| test_string == niko_like_name.downcase }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
@ -40,7 +43,8 @@ module Script
|
|||
|
||||
def self.is_name_like_mom_dad
|
||||
test_string = $game_oneshot.player_name.downcase
|
||||
if ["mom", "dad", "mommy", "daddy", "mama", "papa"].any? { |name| test_string == name }
|
||||
list_of_names_like_mom_dad = tr("NAMES_LIKE_MOMDAD").to_str.split(",")
|
||||
if list_of_names_like_mom_dad.any? { |momdad_name| test_string == momdad_name.downcase }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
@ -48,7 +52,8 @@ module Script
|
|||
|
||||
def self.is_name_gross
|
||||
test_string = $game_oneshot.player_name.downcase
|
||||
if ["poo", "pee", "fart", "stinky", "piss", "shit", "slimy"].any? { |name| test_string == name }
|
||||
list_of_gross_names = tr("NAMES_GROSS").to_str.split(",")
|
||||
if list_of_gross_names.any? { |gross_name| test_string == gross_name.downcase }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
|
|||
Loading…
Reference in a new issue