Class: YumemoireEncyclopedia::Encyclopedia
- Inherits:
-
Object
- Object
- YumemoireEncyclopedia::Encyclopedia
- Defined in:
- lib/YumemoireFramework.rb
Class Method Summary collapse
- .beastiary ⇒ Object
- .detect_poison ⇒ Object
- .monsternames ⇒ Object
- .study ⇒ Object
- .translate ⇒ Object
Class Method Details
.beastiary ⇒ Object
2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 |
# File 'lib/YumemoireFramework.rb', line 2272 def self.beastiary system("clear") beasts = File.read("beasts/beasts.txt") puts beasts available_beasts = [ "[Cochonbuta]", "[Ursinehomme]", "[Ursinepiros]", "[Kumabatto]", "[The Quantumcrusafied]", ] print "\nWhat kind of beast? ( Cochonbuta / Ursinehomme / Ursinepiros / Kumabatto / The Quantumcrusafied ) << "; do_beast = gets.chomp if do_beast == "Cochonbuta"; print available_beasts[0]; puts " Combines a lobster and a boar, related to the spider pig." elsif do_beast == "Ursinehomme"; print available_beasts[1]; puts " Literally translates to bear-man, is the male version of wearbears. Ursinefemme is the female version." elsif do_beast == "Ursinepiros"; print available_beasts[2]; puts " Literally translates to vampire-bear, is the human version of wearbears that feeds on human's blood." elsif do_beast == "Kumabatto"; print available_beasts[3]; puts " A condensed version of 'Le Kumabatto De Les Ghoules', is the king of the bear-bat ghouls." elsif do_beast == "The Quantumcrusafied"; print available_beasts[4]; puts " The wandering spirits of men punished for quantum treason by quantum crusafiction." else puts ">> Not such beast exists on land or sea..." end gets.chomp end |
.detect_poison ⇒ Object
2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 |
# File 'lib/YumemoireFramework.rb', line 2494 def self.detect_poison color_data = File.read("translation/input.txt").strip.to_s ## Natural colors if color_data == "Salmon"; sleep(1.5); system("./salmonbasic.sh") elsif color_data == "Pale Salmon"; sleep(1.5); system("./palesalmon.sh") elsif color_data == "Salmon Pink"; sleep(1.5); system("./salmonpink.sh") elsif color_data == "Copper"; sleep(1.5); system("./cooper.sh") elsif color_data == "Japanese Bistre"; sleep(1.5); system("./japanesebistre.sh") elsif color_data == "Maize"; sleep(1.5); system("./maize.sh") elsif color_data == "Khaki"; sleep(1.5); system("./khaki.sh") elsif color_data == "Bland"; sleep(1.5); system("./bland.sh") elsif color_data == "Pale Lime"; sleep(1.5); system("./palelime.sh") elsif color_data == "Vibrant Green"; sleep(1.5); system("./vibrantgreen.sh") elsif color_data == "Medium Green"; sleep(1.5); system("./mediuemgreen.sh") elsif color_data == "Kelly Green"; sleep(1.5); system("./kellygreen.sh") elsif color_data == "Viridian"; sleep(1.5); system("./viridian.sh") elsif color_data == "Ultramarine"; sleep(1.5); system("./ultramarine.sh") elsif color_data == "Muted Sapphire"; sleep(1.5); system("./mutedsapphire.sh") elsif color_data == "Dark Sapphire"; sleep(1.5); system("./darksapphire.sh") elsif color_data == "Grey Blue"; sleep(1.5); system("./greyblue.sh") elsif color_data == "Dull Purple"; sleep(1.5); system("./dullpurple.sh") elsif color_data == "Light Mauve"; sleep(1.5); system("./lightmauve.sh") elsif color_data == "Dark Lavender"; sleep(1.5); system("./darklavender.sh") elsif color_data == "Atomic Hazel"; sleep(1.5); system("./atomichazel.sh") ## Synthesized Colors elsif color_data == "Faded Carolina Blue"; sleep(1.5); system("./fadedcarolinablue.sh") elsif color_data == "Dusky Blue"; sleep(1.5); system("./duskyblue.sh") ## Double Processed Synthesized Colors else sleep(1.5) puts ">> Either that's not a color, or no color information has yet been found." end end |
.monsternames ⇒ Object
2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 |
# File 'lib/YumemoireFramework.rb', line 2258 def self.monsternames possible_elements = File.readlines("monsternames/elements.txt") $chosen_element = possible_elements.sample.strip.to_s possible_adjectives = File.readlines("monsternames/gendered_adverb.txt") $chosen_adjective = possible_adjectives.sample.strip.to_s $current_monster_name = $chosen_element + " " + $chosen_adjective puts "Created monster name: #{$current_monster_name}" end |
.study ⇒ Object
2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 |
# File 'lib/YumemoireFramework.rb', line 2299 def self.study system("clear") word_index = File.read("lib/encyclopedia/encyclopedia/glossary.txt") puts word_index print "\nWhat word would you like to look up? >> "; research = gets.chomp if research == "Lunario" puts "BOB >> This is the largest form of in game currency, and is not used in ordinary game mechanics. It is mainly used for giving offerings to the lunar goddess, or paying the fair for dimension hopping that will come in the tiles version." gets.chomp elsif research == "Yen" puts "BOB >> The smallest form of in game currency, this is mainly used for smaller fair items." gets.chomp elsif research == "Franc" puts "BOB >> This is the largest form of in game currency within the scope of standard in game use. Once the tiles version of released, Lunario exists as travel currency." gets.chomp elsif research == "RPS" puts "BOB >> RPS ia the ancronym for a form of games based on the mechanics of rock, paper, and scissors." gets.chomp elsif research == "exit" abort else end end |
.translate ⇒ Object
2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 |
# File 'lib/YumemoireFramework.rb', line 2331 def self.translate print "What word would you like to translate? >> "; translate = gets.chomp # Get the word count based on how many words are in a sentence. #word_count = translate.split(" ").to_i dictionary = { ## Word Classes ## Francophonic "Le" => "The ( Masculine ) [ Francophonic ]", "La" => "The ( Feminine ) [ Francophonic ]", "Les" => "The ( Plural ) [ Francophonic ]", "Un" => "A [ Francophonic ]", "Une" => "An [ Francophonic ]", "Des" => "Some [ Francophonic ]", ## Japonic "Anu" => "The ( Masculine ) [ Pseudo-Japonic ]", "Ana" => "The ( Feminine ) [ Pseudo-Japonic ]", "Anos" => "The ( Plural ) [ Pseudo-Japonic ]", "Tu" => "A [ Pseudo-Japonic ]", "Ta" => "An [ Pseudo-Japonic ]", "Tos" => "Some [ Pseudo-Japaonic ]", ## German By Route Of Alsatian "Der" => "The ( Masculine ) [ Germanic ]", "Die" => "The ( Feminine ) [ Germanic ]", "Das" => "The ( Plural ) [ Germanic ]", "A" => "A [ Germanic ]", "Ein" => "An [ Germanic ]", ## Compound Word Specific Word Classes "Lanu" => "The ( masculine ) [ Ahusacos Specific ]", "Lana" => "The ( feminine ) [ Ahusacos Specific ]", "Lanos" => "The ( plural ) [ Ahusacos Specific ]", "Tun" => "A [ Ahusacos Specific ]", "Tan" => "An [ Ahusacos Specific ]", "Deso" => "It / Some [ Ahusacos Specific ]", ## Negation Clauses "Ne" => "Not [ Francophonic ]", "Na" => "Not [ Japonic ]", "Nix " => "Not [ Hybrid ]", "Nein" => "Not [ Germanic ]", ## Personal Pronouns "Je" => "I", "Vous" => "You all", "Toi" => "You", "Nous" => "We", "Il" => "He", "Ils" => "Him", "Elle" => "She", "Elles" => "Her", ## Common Posessives "mien" => "mine", "votre" => "your", "tien" => "yours", "notre" => "our", "notres" => "ours", "sien" => "his", "sienne" => "hers", ## Not used outside of context of military context, used to refer to groups of units. ## In practice, right-wing factions use the wrong plural pronoun to misgender entire units ## as a way to lower moral of left-wing factions. Because of this, after the Franco-Japanese ## Wars, they stopped being used widely. ## War Plurals "Nousil" => "He plural", "Nousils" => "Him plural", "Nouselle" => "She plural", "Nouselles" => "Her plural", ## Plural Posessives "sienotre" => "our men", "sienenotre" => "our women", "sienotres" => "our men's", "sienenotres" => "our women's", ## Famille / Family ### Francophonic "Pere" => "Father", "Mere" => "Mother", "Frere" => "Brother", "Soeur" => "Sister", "Cousifrere" => "Male Cousin", "Cousisoeur" => "Female Cousin", "Cousiles" => "Both Cousins", "Tante" => "Aunt", "Oncle" => "Uncle", ### Color Acidity Framework # These colors are for a system that rates colors based on their acidity or alkalinity. ##### Reds "PH4DR1" => "Salmon", "PH5DR1" => "Pale Salmon", "PH4DR3" => "Salmon Pink", ##### Oranges "PH4DR2" => "Copper", "PH8WE1" => "Japanese Bistre", ##### Yellow "PH6DR1" => "Maize", "PH5DR2" => "Khaki", "PH6DR3" => "Bland", ##### Green "PH6DR2" => "Pale Lime", "PH7NU1" => "Vibrant Green", "PH7NU2" => "Medium Green", "PH8WE2" => "Kelly Green", ##### Blue "PH9WE2" => "Viridian", "PHAWE3" => "Ultramarine", "PH9WE3" => "Muted Sapphire", "PH8WE3" => "Dark Sapphire", "PH7NU3" => "Grey Blue", ##### Purple "PH9WE1" => "Dull Purple", "PH5DR3" => "Light Mauve", ##### Unusual Or Rare Color "PH1WE3CH1" => "Dark Lavender", # A theoretical compound that blends Salmon with Sapphire blue. "PH4WE2CH2" => "Atomic Hazel", # A highly toxic combination of copper and arsenic. "Atomic Hazel" => "#6D6C46", # Hex code for atomic hazel. ### Chomatic Shades ### Arsenic Scale ### Unknown Origin "PHAWE1" => "Bordeaux", # I don't know how I got this color.' ### Hand Mixed Colors "#83b281" => "Dusty Green", ### Synthesized From Real Colors "#A9A8AD" => "Faded Carolina Blue", # Pale Lime, Salmon Pink, Bland, Grey Blue [ Hypothesis Acidic Blue ] "#A0A5B9" => "Manilla Lavender", # Salmon, Pale Salmon, Grey Blue, Grey Blue [ Hypothesis Slightly Alkaline Grey Blue ] "#8cc874" => "Asparagus", # Pale Lime, Maize, Light Mauve, Medium Green [ Hypothesis Alkaline Green ] "#a0b36c" => "Tan Green", # Pale Salmon, Kelly Green, Bland, Khaki [ Hypothesis Slightly Tan Green ] "#5673A9" => "Dusky Blue", # Grey Blue, Light Mauve, Khaki, Sapphire [ Hypothesis Highly Alkaline Blue ] "#A59C94" => "Warm Grey", # Vibrant Green, Salmon, Sapphire Dark, Bland [ Hypothesis Slightly Acidic Grey ] ### Synthesized From Synthetic Colors "#788a9a" => "Steel", # Faded Carolina Blue, Tan Green, Warm Grey, Dusky Blue [ Hypothesis Slightly Alkaline Medium Chromatic Blue ] "#415588" => "Dusky Blue Medium" # Genetically related to standard Dusky blue. Faded Carolina Blue, Tan Green, Warm Grey, Dusky Blue [ Hypothesis More Shaded Alkaline Blue ] } print "Your translation: " print "#{translate} => #{dictionary[translate]}" puts " " gets.chomp end |