diff --git a/app/src/main/java/com/pixelized/rplexicon/model/CharacterSheet.kt b/app/src/main/java/com/pixelized/rplexicon/model/CharacterSheet.kt index 1a25ff5..fe3d00f 100644 --- a/app/src/main/java/com/pixelized/rplexicon/model/CharacterSheet.kt +++ b/app/src/main/java/com/pixelized/rplexicon/model/CharacterSheet.kt @@ -7,20 +7,16 @@ data class CharacterSheet( val level: Int, // Niveau val characterClass: String, // Classe val hitPoint: Int, // Point de vie MAX - val rage: Int?, - val relentlessEndurance: Int?, - val divineConduit: Int?, - val bardicInspiration: Int?, - val spell1: Int?, - val spell2: Int?, - val spell3: Int?, - val spell4: Int?, - val spell5: Int?, - val spell6: Int?, - val spell7: Int?, - val spell8: Int?, - val spell9: Int?, - val dC: Int?, + val spell1: Int?, // level 1 spell slot + val spell2: Int?, // level 2 spell slot + val spell3: Int?, // level 3 spell slot + val spell4: Int?, // level 4 spell slot + val spell5: Int?, // level 5 spell slot + val spell6: Int?, // level 6 spell slot + val spell7: Int?, // level 7 spell slot + val spell8: Int?, // level 8 spell slot + val spell9: Int?, // level 9 spell slot + val dC: Int?, // offensive saving throw. val armorClass: Int, // Classe d'armure val speed: Int, // Vitesse val strength: Int, // Force diff --git a/app/src/main/java/com/pixelized/rplexicon/model/Spell.kt b/app/src/main/java/com/pixelized/rplexicon/model/Spell.kt index 5e6627c..c889531 100644 --- a/app/src/main/java/com/pixelized/rplexicon/model/Spell.kt +++ b/app/src/main/java/com/pixelized/rplexicon/model/Spell.kt @@ -2,7 +2,6 @@ package com.pixelized.rplexicon.model data class Spell( val name: String, - val originalName: String, val school: School, val level: Int, val castingTime: String, diff --git a/app/src/main/java/com/pixelized/rplexicon/repository/parser/CharacterSheetParser.kt b/app/src/main/java/com/pixelized/rplexicon/repository/parser/CharacterSheetParser.kt index b6cd3f0..cf3ac34 100644 --- a/app/src/main/java/com/pixelized/rplexicon/repository/parser/CharacterSheetParser.kt +++ b/app/src/main/java/com/pixelized/rplexicon/repository/parser/CharacterSheetParser.kt @@ -49,10 +49,6 @@ class CharacterSheetParser @Inject constructor() { level = item.parseInt(LEVEL) ?: 2, characterClass = item.parseString(CLASS) ?: "", 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), spell2 = item.parseInt(SPELL_LEVEL_2), spell3 = item.parseInt(SPELL_LEVEL_3), @@ -112,10 +108,6 @@ class CharacterSheetParser @Inject constructor() { private const val LEVEL = "Niveau" private const val CLASS = "Classe" 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_2 = "Sort de niveau 2" private const val SPELL_LEVEL_3 = "Sort de niveau 3" @@ -167,10 +159,6 @@ class CharacterSheetParser @Inject constructor() { LEVEL, CLASS, MAX_HIT_POINT, - RAGE, - RELENTLESS_ENDURANCE, - DIVINE_CONDUIT, - BARDIC_INSPIRATION, SPELL_LEVEL_1, SPELL_LEVEL_2, SPELL_LEVEL_3,