mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 22:09:55 +00:00
Added more checks for names
This commit is contained in:
parent
aa7818847c
commit
c51dfe842a
1 changed files with 25 additions and 0 deletions
|
|
@ -31,6 +31,22 @@ module Script
|
|||
return false
|
||||
end
|
||||
|
||||
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 }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
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 }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
def self.start_bruteforce
|
||||
$game_oneshot.bruteforce_start = Graphics.frame_count
|
||||
end
|
||||
|
|
@ -261,6 +277,15 @@ module Script
|
|||
end
|
||||
end
|
||||
end
|
||||
if File.exists?("README.txt")
|
||||
File.open("README.txt", "rb") do |input|
|
||||
File.open(Oneshot::DOCS_PATH + "\\My Games\\Oneshot\\README.txt","wb") do |output|
|
||||
while buff = input.read(4096)
|
||||
output.write(buff)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue