Refactor move attribute logic and add arena trap moves

This commit is contained in:
Flashfyre committed 2023-04-24 14:30:21 -04:00
1 parent 77b3f136dd
commit 92c8583129
9 files changed
+1222 -615

No files matched your search

+3 -1
View File
@@ -19,7 +19,9 @@ export enum Type {
FAIRY
};
export function getTypeDamageMultiplier(attackType: integer, defType: integer) {
export type TypeDamageMultiplier = 0 | 0.25 | 0.5 | 1 | 2 | 4;
export function getTypeDamageMultiplier(attackType: integer, defType: integer): TypeDamageMultiplier {
switch (defType) {
case Type.NORMAL:
switch (attackType) {