-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'be/develop' of https://github.com/woowacourse-teams/202…
…4-pokerogue-helper into be/infra/#467-migrate-prod-db
- Loading branch information
Showing
19 changed files
with
165 additions
and
70 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
backend/pokerogue/src/main/java/com/pokerogue/helper/ability/dto/AbilityTypeResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package com.pokerogue.helper.ability.dto; | ||
|
||
import com.pokerogue.helper.global.config.ImageUrl; | ||
import com.pokerogue.helper.type.data.Type; | ||
|
||
public record AbilityTypeResponse(String typeLogo, String typeName) { | ||
|
||
public static AbilityTypeResponse from(Type type) { | ||
return new AbilityTypeResponse(type.getImage(), type.getKoName()); | ||
return new AbilityTypeResponse(ImageUrl.getTypeImage(type.getName()), type.getKoName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
backend/pokerogue/src/main/java/com/pokerogue/helper/battle/dto/BattleResultResponseV1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.pokerogue.helper.battle.dto; | ||
|
||
import com.pokerogue.helper.move.data.Move; | ||
import com.pokerogue.helper.move.data.MoveCategory; | ||
import com.pokerogue.helper.type.data.Type; | ||
|
||
public record BattleResultResponseV1( | ||
int power, | ||
double multiplier, | ||
double accuracy, | ||
String moveName, | ||
String moveDescription, | ||
String moveType, | ||
String moveCategory | ||
) { | ||
public static BattleResultResponseV1 from(Move move, double multiplier, double accuracy) { | ||
Type moveType = move.getType(); | ||
MoveCategory moveCategory = move.getMoveCategory(); | ||
|
||
return new BattleResultResponseV1( | ||
move.getPower(), | ||
multiplier, | ||
accuracy, | ||
move.getName(), | ||
move.getEffect(), | ||
moveType.getKoName(), | ||
moveCategory.getName() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
backend/pokerogue/src/main/java/com/pokerogue/helper/pokemon/dto/EvolutionResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
backend/pokerogue/src/main/java/com/pokerogue/helper/pokemon/dto/PokemonBiomeResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
backend/pokerogue/src/main/java/com/pokerogue/helper/pokemon/dto/PokemonDetailResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
backend/pokerogue/src/main/java/com/pokerogue/helper/pokemon/dto/PokemonResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.