Refactor move attribute logic and add arena trap moves
This commit is contained in:
1 parent
77b3f136dd
commit
92c8583129
9 files changed
+1222
-615
No files matched your search
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user