Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Return heighten level #91

Merged
merged 5 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading