File size: 4,721 Bytes
1ecc382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/**
 * Test data for battle engine testing
 * Contains example Piclets and moves following the design document
 */

import { 
  PicletDefinition, 
  Move, 
  BaseStats, 
  SpecialAbility,
  AttackType,
  PicletType
} from './types';

// Example base stats for different tiers
export const LOW_TIER_STATS: BaseStats = {
  hp: 80,
  attack: 65,
  defense: 60,
  speed: 55
};

export const MEDIUM_TIER_STATS: BaseStats = {
  hp: 100,
  attack: 80,
  defense: 75,
  speed: 70
};

export const HIGH_TIER_STATS: BaseStats = {
  hp: 120,
  attack: 100,
  defense: 90,
  speed: 85
};

// Example moves following the design document
export const BASIC_TACKLE: Move = {
  name: "Tackle",
  type: AttackType.NORMAL,
  power: 40,
  accuracy: 100,
  pp: 35,
  priority: 0,
  flags: ['contact'],
  effects: [{
    type: 'damage',
    target: 'opponent',
    amount: 'normal'
  }]
};

export const FLAME_BURST: Move = {
  name: "Flame Burst",
  type: AttackType.SPACE,
  power: 70,
  accuracy: 100,
  pp: 15,
  priority: 0,
  flags: ['explosive'],
  effects: [{
    type: 'damage',
    target: 'opponent',
    amount: 'normal'
  }]
};

export const HEALING_LIGHT: Move = {
  name: "Healing Light", 
  type: AttackType.SPACE,
  power: 0,
  accuracy: 100,
  pp: 10,
  priority: 0,
  flags: [],
  effects: [{
    type: 'heal',
    target: 'self',
    amount: 'medium'
  }]
};

export const POWER_UP: Move = {
  name: "Power Up",
  type: AttackType.NORMAL,
  power: 0,
  accuracy: 100,
  pp: 20,
  priority: 0,
  flags: [],
  effects: [{
    type: 'modifyStats',
    target: 'self',
    stats: { attack: 'increase' }
  }]
};

export const BERSERKER_END: Move = {
  name: "Berserker's End",
  type: AttackType.BEAST,
  power: 80,
  accuracy: 90,
  pp: 5,
  priority: 0,
  flags: ['contact', 'reckless', 'sacrifice'],
  effects: [
    {
      type: 'damage',
      target: 'opponent',
      amount: 'normal'
    },
    {
      type: 'damage',
      target: 'opponent', 
      amount: 'strong',
      condition: 'ifLowHp'
    },
    {
      type: 'modifyStats',
      target: 'self',
      stats: { defense: 'greatly_decrease' },
      condition: 'ifLowHp'
    }
  ]
};

export const TOXIC_STING: Move = {
  name: "Toxic Sting",
  type: AttackType.BUG,
  power: 30,
  accuracy: 100,
  pp: 20,
  priority: 0,
  flags: ['contact'],
  effects: [
    {
      type: 'damage',
      target: 'opponent',
      amount: 'weak'
    },
    {
      type: 'applyStatus',
      target: 'opponent',
      status: 'poison'
    }
  ]
};

// Example special abilities
export const REGENERATOR: SpecialAbility = {
  name: "Regenerator",
  description: "Restores HP when switching out",
  triggers: [{
    event: "onSwitchOut",
    effects: [{
      type: 'heal',
      target: 'self',
      amount: 'small'
    }]
  }]
};

export const FLAME_BODY: SpecialAbility = {
  name: "Flame Body", 
  description: "Contact moves may burn the attacker",
  triggers: [{
    event: "onContactDamage",
    condition: 'ifLucky50',
    effects: [{
      type: 'applyStatus',
      target: 'attacker',
      status: 'burn'
    }]
  }]
};

export const SPEED_BOOST: SpecialAbility = {
  name: "Speed Boost",
  description: "Speed increases each turn",
  triggers: [{
    event: "onTurnEnd",
    effects: [{
      type: 'modifyStats',
      target: 'self',
      stats: { speed: 'increase' }
    }]
  }]
};

// Example Piclet definitions
export const STELLAR_WOLF: PicletDefinition = {
  name: "Stellar Wolf",
  description: "A cosmic predator that hunts among the stars",
  tier: 'medium',
  primaryType: PicletType.SPACE,
  secondaryType: PicletType.BEAST,
  baseStats: MEDIUM_TIER_STATS,
  nature: "Brave",
  specialAbility: FLAME_BODY,
  movepool: [BASIC_TACKLE, FLAME_BURST, HEALING_LIGHT, POWER_UP]
};

export const TOXIC_CRAWLER: PicletDefinition = {
  name: "Toxic Crawler",
  description: "A venomous arthropod with deadly precision",
  tier: 'low',
  primaryType: PicletType.BUG,
  baseStats: LOW_TIER_STATS,
  nature: "Careful",
  specialAbility: SPEED_BOOST,
  movepool: [BASIC_TACKLE, TOXIC_STING, POWER_UP]
};

export const BERSERKER_BEAST: PicletDefinition = {
  name: "Berserker Beast",
  description: "A wild creature that fights with reckless abandon",
  tier: 'high',
  primaryType: PicletType.BEAST,
  baseStats: HIGH_TIER_STATS,
  nature: "Reckless",
  specialAbility: REGENERATOR,
  movepool: [BASIC_TACKLE, BERSERKER_END, HEALING_LIGHT, POWER_UP]
};

export const AQUA_GUARDIAN: PicletDefinition = {
  name: "Aqua Guardian",
  description: "A protective water spirit",
  tier: 'medium',
  primaryType: PicletType.AQUATIC,
  baseStats: MEDIUM_TIER_STATS,
  nature: "Calm",
  specialAbility: REGENERATOR,
  movepool: [BASIC_TACKLE, HEALING_LIGHT, POWER_UP]
};