forked from mycard/ygopro-images-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MSEConstants.rb
118 lines (105 loc) · 2.52 KB
/
MSEConstants.rb
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# mse set constants
module MSEConstants
module MSEConfig
Tag = "mse"
TagHead = "head"
TagEnd = "end"
TagCn2Tw = "cn2tw"
TagSpell = "spell"
TagTrap = "trap"
TagRegPendulum = "pendulum-text"
TagRegMonster = "monster-text"
TagMaxCount = "maxcount"
TagRace = "race"
TagType = "type"
TagWidth = "width"
TagHeight = "height"
TagReimage = "reimage"
TagPendWidth = "pwidth"
TagPendHeight = "pheight"
TagImage = "imagepath"
TagReplace = "replace"
TagText = "text"
TagRep = "%%"
SepLine = " "
FileConfigName = "Chinese-Simplified"
PathImage = "Images"
Head = "mse version: 0.3.8\ngame: yugioh\nstylesheet: %s\nset info:\n\tlanguage: %s\n\tedition: \n\tno corner: yes\n\tST mark is text: yes\n\tpendulum image is small: yes\n\thide gamecode: yes\n"
End = "version control:\n\ttype: none\napprentice code: "
Width = 319
Height = 317
PWidth = 363
PHeight = 275
end
module MSETags
TagCard = "card"
TagCardType = "card type"
TagName = "name"
TagAttribute = "attribute"
TagLevel = "level"
TagImage = "image"
TagType1 = "type 1" # 种族
TagType2 = "type 2" # 效果1
TagType3 = "type 3" # 效果2
TagType4 = "type 4" # 效果3
TagText = "rule text"
TagAtk = "attack"
TagDef = "defense"
TagLink = "link number"
TagNumber = "number"
TagRarity = "rarity"
TagPendulum = "pendulum"
TagPScale1 = "pendulum scale 1"
TagPScale2 = "pendulum scale 2"
TagPEndText = "pendulum text"
TagCode = "gamecode"
UnknownAtkDef = "?"
UnknownAtkDefValue = -2
TagRepText = "%text%"
TagRepPText = "%ptext%"
end
module MSEAttribute
None = "none"
Dark = "dark"
Divine = "divine"
Earth = "earth"
Fire = "fire"
Light = "light"
Water = "water"
Wind = "wind"
Spell = "spell"
Trap = "trap"
end
module MSESpellTrap
Equip = "+"
Quickplay = "$"
Field = "&"
Continuous = "%"
Ritual = "#"
Counter = "!"
Normal = "^"
Level = "*"
Model = "<sym-auto>%s</sym-auto>"
def self.model(para)
return sprintf Model, para
end
end
module MSECardType
Normal = "normal monster"
Effect = "effect monster"
Xyz = "xyz monster"
Ritual = "ritual monster"
Fusion = "fusion monster"
Token = "token monster"
Token2 = "token card"
Synchro = "synchro monster"
Link = "link monster"
Spell = "spell card"
Trap = "trap card"
Special = {10000000 => "obelisk", 10000010 => "ra", 10000020 => "slifer"}
end
SetFileName = "set"
SingleFileMaxCount = 200
LinkMarkerHead = "Link Marker "
LinkMarks = ["DL", "Down", "DR", "Left", "", "Right", "UL", "Up", "UR"]
end