This repository was archived by the owner on Nov 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalization.cs
More file actions
75 lines (68 loc) · 2.55 KB
/
Localization.cs
File metadata and controls
75 lines (68 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Project_Free_Food
{
class Localization
{
public string enterHalt = "↓";
public string welcomeTo = "Welcome to ";
public string title = "Project Free Food";
public string introduction = "It looks like you're here for the first time... Whassa name?";
public string nameError = "Please enter a valid name. Your name may not contain more than 10 letters.";
public string myNameIs = "My name is";
public string[] defaultEncounterStrings = new string[]
{
"You arrive at a " + locationType[new Random().Next(0, locationType.Length)] + ".",
"A " + badCreatureType[new Random().Next(0, badCreatureType.Length)] + " appears in front of you.",
"You find yourself in a " + locationType[new Random().Next(0, locationType.Length)] + ".",
"A " + goodCreatureType[new Random().Next(0, goodCreatureType.Length)] + " approaches you.",
"You hear a strange noise coming from the distance."
};
public static string[] locationType = new string[]
{
"forest",
"city",
"desert",
"mountain",
"cave"
};
public static string[] badCreatureType = new string[]
{
"aggressive dog",
"feral cat",
"wild boar",
"angry bear",
"swarm of bees",
"venomous snake",
"rabid raccoon",
"homeless person",
"gang member",
"wild turkey"
};
public static string[] goodCreatureType = new string[]
{
"friendly shopkeeper",
"kind stranger",
"helpful tourist",
"neighborly postman",
"compassionate paramedic",
"trustworthy police officer",
"friendly library assistant",
"accommodating restaurant host",
"assisting social worker",
"kind-hearted park ranger"
};
public string playerData(string name, int cash, int health, int damage)
{
int currentHealth = health - damage;
return "Name: " + name + "\n " + cash + "¥\n Health: " + currentHealth + "/" + health;
}
public string nameSuccess(string playerName)
{
return playerName + " hmm? What an... Interesting name indeed. Now, I'm sure you'll find what you need! ";
}
}
}