feat(codegen): generate the decomp trainers and their parties (#115)
This commit is contained in:
1 parent
a6ee4bc91d
commit
457f21c17f
14 files changed
+429
-10
No files matched your search
@@ -8,6 +8,8 @@ import java.time.LocalDateTime
|
||||
|
||||
const val MAX_MOVE_SLOTS = 4
|
||||
|
||||
const val MAX_PARTY_SIZE = 6
|
||||
|
||||
data class Pokemon(
|
||||
val id: Long,
|
||||
val ownerId: Long,
|
||||
|
||||
@@ -52,7 +52,9 @@ open class PokemonStats(private val individualCap: Int, private val totalCap: In
|
||||
|
||||
class EVs : PokemonStats(252, 510)
|
||||
|
||||
class IVs : PokemonStats(31, 186)
|
||||
const val MAX_IV = 31
|
||||
|
||||
class IVs : PokemonStats(MAX_IV, 186)
|
||||
|
||||
fun IVs.compress(): Int =
|
||||
(((hp and 31) shl 0) or
|
||||
|
||||
Reference in new issue
Block a user