forked from Talishar/Talishar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameTerms.php
More file actions
136 lines (133 loc) · 3.52 KB
/
GameTerms.php
File metadata and controls
136 lines (133 loc) · 3.52 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
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
<?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 "Pitch";
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 pitch";
case "ARS":
return "a card to add to arsenal";
case "PDECK":
return "a card from the pitch zone";
case "OPT":
return "a card to add to the deck top or bottom";
case "CHOOSETOP": case "CHOOSETOPOPPONENT":
return "a card to add to the top of the deck";
case "CHOOSEDECK": case "CHOOSETHEIRDECK":
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":
case "CHOOSEHAND":
case "CHOOSETHEIRHAND":
case "CHOOSEHANDCANCEL":
return "a card from hand";
case "BUTTONINPUT":
return "a button";
case "BUTTONINPUTNOPASS":
return "a button";
case "MAYCHOOSEDISCARD":
return "cards from the graveyard";
case "CHOOSEDISCARDCANCEL":
return "cards from the graveyard";
case "CHOOSEDISCARD":
return "cards from the graveyard";
case "MULTICHOOSEDISCARD":
return "cards from the graveyard";
case "MULTICHOOSEHAND":
return "cards from hand";
case "MAYMULTICHOOSEHAND":
return "cards from hand";
case "MULTICHOOSEDECK":
return "cards from deck";
case "MULTICHOOSEBANISH":
return "cards from banish";
case "YESNO":
return str_replace("_", " ", $turn[2]);
case "OK":
return str_replace("_", " ", $turn[2]);
case "MULTICHOOSETEXT":
return " options";
case "MAYMULTICHOOSETEXT":
return " options";
case "CHOOSEARCANE":
return "an amount to pitch to arcane barrier";
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 "ENDPHASE":
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 wish to pay";
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 "pitched";
case "B":
return "blocked with";
default:
return "played";
}
}