-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathclasses_plural.lua
More file actions
55 lines (52 loc) · 979 Bytes
/
classes_plural.lua
File metadata and controls
55 lines (52 loc) · 979 Bytes
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
local ClassesPlural = {}
function ClassesPlural.GetPlural(class_id)
do
local c = {
[1] = "Warriors",
[2] = "Clerics",
[3] = "Paladins",
[4] = "Rangers",
[5] = "Shadow Knights",
[6] = "Druids",
[7] = "Monks",
[8] = "Bards",
[9] = "Rogues",
[10] = "Shamans",
[11] = "Necromancers",
[12] = "Wizards",
[13] = "Magicians",
[14] = "Enchanters",
['?'] = "Unknowns"
}
if( c[class_id] == nil ) then
return "Scums";
end
return c[class_id];
end
end
function ClassesPlural.GetSingle(class_id)
do
local c = {
[1] = "Warrior",
[2] = "Cleric",
[3] = "Paladin",
[4] = "Ranger",
[5] = "Shadow Knight",
[6] = "Druid",
[7] = "Monk",
[8] = "Bard",
[9] = "Rogue",
[10] = "Shaman",
[11] = "Necromancer",
[12] = "Wizard",
[13] = "Magician",
[14] = "Enchanter",
['?'] = "Unknown"
}
if( c[class_id] == nil ) then
return "scum";
end
return c[class_id];
end
end
return ClassesPlural;