Skip to content

Commit

Permalink
feat: Return heighten level (#91)
Browse files Browse the repository at this point in the history
* introduce heighten_level field for FE
  • Loading branch information
RakuJa authored Feb 19, 2025
1 parent 4feafd9 commit 0a8821c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/data_providers/creature_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ async fn fetch_creature_spellcaster_entries(
SpellcasterData,
"SELECT
id, spellcasting_name, is_spellcasting_flexible, type_of_spellcaster,
spellcasting_dc_mod, spellcasting_atk_mod, spellcasting_tradition
spellcasting_dc_mod, spellcasting_atk_mod, spellcasting_tradition, heighten_level
FROM SPELLCASTING_ENTRY_TABLE WHERE creature_id == ($1)",
creature_id
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ impl CreatureSpellcasterData {
spellcasting_dc_mod: sce.spellcasting_dc_mod + modifier,
spellcasting_atk_mod: sce.spellcasting_atk_mod + modifier,
spellcasting_tradition: sce.spellcasting_tradition,
heighten_level: sce.heighten_level,
},
spells: entry.spells,
}
Expand Down
1 change: 1 addition & 0 deletions src/models/creature/items/spellcaster_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub struct SpellcasterData {
#[schema(example = 10)]
pub spellcasting_atk_mod: i64,
pub spellcasting_tradition: String,
pub heighten_level: i64,
}

#[derive(Serialize, Deserialize, Clone, ToSchema, Eq, Hash, PartialEq)]
Expand Down

0 comments on commit 0a8821c

Please sign in to comment.