Remove skill from the CharacterSheet class and parse.
This commit is contained in:
parent
2b040afd5c
commit
8a212ce69d
3 changed files with 10 additions and 27 deletions
|
|
@ -7,20 +7,16 @@ data class CharacterSheet(
|
||||||
val level: Int, // Niveau
|
val level: Int, // Niveau
|
||||||
val characterClass: String, // Classe
|
val characterClass: String, // Classe
|
||||||
val hitPoint: Int, // Point de vie MAX
|
val hitPoint: Int, // Point de vie MAX
|
||||||
val rage: Int?,
|
val spell1: Int?, // level 1 spell slot
|
||||||
val relentlessEndurance: Int?,
|
val spell2: Int?, // level 2 spell slot
|
||||||
val divineConduit: Int?,
|
val spell3: Int?, // level 3 spell slot
|
||||||
val bardicInspiration: Int?,
|
val spell4: Int?, // level 4 spell slot
|
||||||
val spell1: Int?,
|
val spell5: Int?, // level 5 spell slot
|
||||||
val spell2: Int?,
|
val spell6: Int?, // level 6 spell slot
|
||||||
val spell3: Int?,
|
val spell7: Int?, // level 7 spell slot
|
||||||
val spell4: Int?,
|
val spell8: Int?, // level 8 spell slot
|
||||||
val spell5: Int?,
|
val spell9: Int?, // level 9 spell slot
|
||||||
val spell6: Int?,
|
val dC: Int?, // offensive saving throw.
|
||||||
val spell7: Int?,
|
|
||||||
val spell8: Int?,
|
|
||||||
val spell9: Int?,
|
|
||||||
val dC: Int?,
|
|
||||||
val armorClass: Int, // Classe d'armure
|
val armorClass: Int, // Classe d'armure
|
||||||
val speed: Int, // Vitesse
|
val speed: Int, // Vitesse
|
||||||
val strength: Int, // Force
|
val strength: Int, // Force
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ package com.pixelized.rplexicon.model
|
||||||
|
|
||||||
data class Spell(
|
data class Spell(
|
||||||
val name: String,
|
val name: String,
|
||||||
val originalName: String,
|
|
||||||
val school: School,
|
val school: School,
|
||||||
val level: Int,
|
val level: Int,
|
||||||
val castingTime: String,
|
val castingTime: String,
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,6 @@ class CharacterSheetParser @Inject constructor() {
|
||||||
level = item.parseInt(LEVEL) ?: 2,
|
level = item.parseInt(LEVEL) ?: 2,
|
||||||
characterClass = item.parseString(CLASS) ?: "",
|
characterClass = item.parseString(CLASS) ?: "",
|
||||||
hitPoint = item.parseInt(MAX_HIT_POINT) ?: 1,
|
hitPoint = item.parseInt(MAX_HIT_POINT) ?: 1,
|
||||||
rage = item.parseInt(RAGE),
|
|
||||||
relentlessEndurance = item.parseInt(RELENTLESS_ENDURANCE),
|
|
||||||
divineConduit = item.parseInt(DIVINE_CONDUIT),
|
|
||||||
bardicInspiration = item.parseInt(BARDIC_INSPIRATION),
|
|
||||||
spell1 = item.parseInt(SPELL_LEVEL_1),
|
spell1 = item.parseInt(SPELL_LEVEL_1),
|
||||||
spell2 = item.parseInt(SPELL_LEVEL_2),
|
spell2 = item.parseInt(SPELL_LEVEL_2),
|
||||||
spell3 = item.parseInt(SPELL_LEVEL_3),
|
spell3 = item.parseInt(SPELL_LEVEL_3),
|
||||||
|
|
@ -112,10 +108,6 @@ class CharacterSheetParser @Inject constructor() {
|
||||||
private const val LEVEL = "Niveau"
|
private const val LEVEL = "Niveau"
|
||||||
private const val CLASS = "Classe"
|
private const val CLASS = "Classe"
|
||||||
private const val MAX_HIT_POINT = "Point de vie MAX"
|
private const val MAX_HIT_POINT = "Point de vie MAX"
|
||||||
private const val RAGE = "Rage"
|
|
||||||
private const val RELENTLESS_ENDURANCE = "Endurance implacable"
|
|
||||||
private const val DIVINE_CONDUIT = "Conduit divin"
|
|
||||||
private const val BARDIC_INSPIRATION = "Inspiration bardique"
|
|
||||||
private const val SPELL_LEVEL_1 = "Sort de niveau 1"
|
private const val SPELL_LEVEL_1 = "Sort de niveau 1"
|
||||||
private const val SPELL_LEVEL_2 = "Sort de niveau 2"
|
private const val SPELL_LEVEL_2 = "Sort de niveau 2"
|
||||||
private const val SPELL_LEVEL_3 = "Sort de niveau 3"
|
private const val SPELL_LEVEL_3 = "Sort de niveau 3"
|
||||||
|
|
@ -167,10 +159,6 @@ class CharacterSheetParser @Inject constructor() {
|
||||||
LEVEL,
|
LEVEL,
|
||||||
CLASS,
|
CLASS,
|
||||||
MAX_HIT_POINT,
|
MAX_HIT_POINT,
|
||||||
RAGE,
|
|
||||||
RELENTLESS_ENDURANCE,
|
|
||||||
DIVINE_CONDUIT,
|
|
||||||
BARDIC_INSPIRATION,
|
|
||||||
SPELL_LEVEL_1,
|
SPELL_LEVEL_1,
|
||||||
SPELL_LEVEL_2,
|
SPELL_LEVEL_2,
|
||||||
SPELL_LEVEL_3,
|
SPELL_LEVEL_3,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue