-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathraces_plural.lua
More file actions
89 lines (86 loc) · 1.67 KB
/
races_plural.lua
File metadata and controls
89 lines (86 loc) · 1.67 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
local RacesPlural = {}
function RacesPlural.GetPlural(race_id)
do
local r = {
[1] = "Humans",
[2] = "Barbarians",
[3] = "Erudites",
[4] = "Wood Elves",
[5] = "High Elves",
[6] = "Dark Elves",
[7] = "Half Elves",
[8] = "Dwarves",
[9] = "Trolls",
[10] = "Ogres",
[11] = "Halflings",
[12] = "Gnomes",
[14] = "Werewolves",
[22] = "Beetles",
[34] = "Bats",
[36] = "Rats",
[39] = "Gnolls",
[42] = "Wolves",
[43] = "Bears",
[54] = "Orcs",
[60] = "Skeletons",
[74] = "Frogloks",
[75] = "Elementals",
[108] = "Eyes of Zomm",
[120] = "Wolf Elementals",
[128] = "Iksars",
[130] = "Vah Shirs",
[161] = "Iksar Skeletons",
[330] = "Frogloks",
[367] = "Skeletons",
[522] = "Drakkins",
['?'] = "Unknowns"
}
if( r[race_id] == nil ) then
return "Scums";
end
return r[race_id];
end
end
function RacesPlural.GetSingle(race_id)
do
local r = {
[1] = "Human",
[2] = "Barbarian",
[3] = "Erudite",
[4] = "Wood Elf",
[5] = "High Elf",
[6] = "Dark Elf",
[7] = "Half Elf",
[8] = "Dwarf",
[9] = "Troll",
[10] = "Ogre",
[11] = "Halfling",
[12] = "Gnome",
[14] = "Werewolf",
[22] = "Beetle",
[34] = "Bat",
[36] = "Rat",
[39] = "Gnoll",
[42] = "Wolf",
[43] = "Bear",
[54] = "Orc",
[60] = "Skeleton",
[74] = "Froglok",
[75] = "Elemental",
[108] = "Eye of Zomm",
[120] = "Wolf Elemental",
[128] = "Iksar",
[130] = "Vah Shir",
[161] = "Iksar Skeleton",
[330] = "Froglok",
[367] = "Skeleton",
[522] = "Drakkin",
['?'] = "Unknown"
}
if( r[race_id] == nil ) then
return "scum";
end
return r[race_id];
end
end
return RacesPlural;