Skip to content

Commit

Permalink
Consolidate the switch cases in IvyCudgelTypeAttr
Browse files Browse the repository at this point in the history
  • Loading branch information
DayKev committed Jul 31, 2024
1 parent cb7dbe6 commit 31d9435
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/data/move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3802,26 +3802,18 @@ export class IvyCudgelTypeAttr extends VariableMoveTypeAttr {

switch (form) {
case 1: // Wellspring Mask
move.type = Type.WATER;
break;
case 2: // Hearthflame Mask
move.type = Type.FIRE;
break;
case 3: // Cornerstone Mask
move.type = Type.ROCK;
break;
case 4: // Teal Mask Tera
move.type = Type.GRASS;
break;
case 5: // Wellspring Mask Tera
move.type = Type.WATER;
break;
case 2: // Hearthflame Mask
case 6: // Hearthflame Mask Tera
move.type = Type.FIRE;
break;
case 3: // Cornerstone Mask
case 7: // Cornerstone Mask Tera
move.type = Type.ROCK;
break;
case 4: // Teal Mask Tera
default:
move.type = Type.GRASS;
break;
Expand Down

0 comments on commit 31d9435

Please sign in to comment.