[Refactor] Consolidate the switch cases in `IvyCudgelTypeAttr` (#3261)

This commit is contained in:
NightKev 2024-07-30 21:11:43 -07:00 committed by GitHub
parent 54ee2f3f10
commit 495284ad47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 11 deletions

View File

@ -3837,26 +3837,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;