-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathGameTerms.php
159 lines (155 loc) · 4.05 KB
/
GameTerms.php
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
function PhaseName($phase)
{
switch ($phase) {
case "M":
return "Main";
case "B":
return "Block";
case "A":
return "Attack Reaction";
case "D":
return "Defense Reaction";
case "P":
return "Reserve";
case "ARS":
return "Arsenal";
}
}
function TypeToPlay($phase)
{
global $turn;
switch ($phase) {
case "M":
return "an Action";
case "B":
return "a card to block";
case "A":
return "a reaction";
case "D":
return "a reaction";
case "P":
return "a card to reserve";
case "ARS":
return "a card to add to arsenal";
case "OPT":
return "a card to add to the deck top or bottom";
case "CHOOSETOPOPPONENT":
return "a card to add to the top of the deck";
case "CHOOSEDECK":
return "a card from deck";
case "MAYCHOOSEDECK":
return "a card from deck";
case "HANDTOPBOTTOM":
return "a card from hand";
case "CHOOSEBOTTOM":
return "a card to put on the bottom of the deck";
case "CHOOSECOMBATCHAIN":
return "a card from the chain link";
case "CHOOSECHARACTER":
return "a card";
case "CHOOSETHEIRCHARACTER":
return "a card";
case "MAYCHOOSEHAND":
return "a card from hand";
case "CHOOSEHAND":
return "a card from hand";
case "CHOOSEHANDCANCEL":
return "a card from hand";
case "BUTTONINPUT":
return "a button";
case "BUTTONINPUTNOPASS":
return "a button";
case "MAYCHOOSEDISCARD":
return "cards from discard";
case "CHOOSEDISCARDCANCEL":
return "cards from discard";
case "CHOOSEDISCARD":
return "cards from discard";
case "MULTICHOOSEDISCARD":
return "cards from discard";
case "MULTICHOOSEHAND":
return "cards from hand";
case "MAYMULTICHOOSEHAND":
return "cards from hand";
case "MAYMULTICHOOSEAURAS":
return "cards from play";
case "MULTICHOOSEDECK":
return "cards from deck";
case "MULTICHOOSEUNIT":
return "unit";
case "MULTICHOOSETHEIRUNIT":
return "unit";
case "MULTICHOOSEOURUNITS":
return "unit";
case "MULTICHOOSEMYUNITSANDBASE":
return "unit and/or base";
case "MULTICHOOSETHEIRUNITSANDBASE":
return "unit and/or base";
case "MULTICHOOSEOURUNITSANDBASE":
return "unit and/or base";
case "YESNO":
return str_replace("_", " ", $turn[2]);
case "MULTICHOOSETEXT": // Deprecated, use CHOOSEOPTION instead
return " options";
case "MAYMULTICHOOSETEXT": // Deprecated, use MAYCHOOSEOPTION instead
return " options";
case "MAYCHOOSEOPTION":
case "CHOOSEOPTION":
return "an option";
case "CHOOSEARCANE":
return "an amount to pitch to prevent arcane damage";
case "MAYCHOOSEARSENAL":
return "a card from arsenal";
case "CHOOSEARSENAL":
return "a card from arsenal";
case "CHOOSEARSENALCANCEL":
return "a card from arsenal";
case "CHOOSEMULTIZONE":
return "a card";
case "MAYCHOOSEMULTIZONE":
return "a card";
case "CHOOSEBANISH":
return "a card from banish";
case "INSTANT":
return "an instant";
case "END":
return "an order for triggers";
case "CHOOSEFIRSTPLAYER":
return "who will be the first player";
case "MAYCHOOSETHEIRDISCARD":
return "a card from their graveyard";
case "CHOOSEMYAURA":
return " an aura";
case "DYNPITCH":
return "how much you want to pay (include base cost)";
case "CHOOSEMYSOUL": case "MAYCHOOSEMYSOUL":
return "a card from soul";
case "INPUTCARDNAME":
return "a card name";
}
}
function PlayTerm($phase, $from="", $cardID="")
{
if ($cardID != "") {
if (IsStaticType(CardType($cardID), $from, $cardID) && $phase != "B") return "activated";
}
switch ($phase) {
case "P":
return "reserved";
case "B":
return "blocked with";
default:
return "played";
}
}
function CardTypeName($cardType)
{
/*
switch($cardType)
{
case "A": return "Action";
case "AR"
}
*/
}