mirror of
https://github.com/redstrate/Kawari.git
synced 2025-06-30 11:47:45 +00:00
Add function to get an action's cast time
For future spell-related stuff.
This commit is contained in:
parent
6ecea26646
commit
01508fd506
2 changed files with 9 additions and 1 deletions
|
@ -104,4 +104,4 @@ rkon = { version = "0.1" }
|
||||||
tower-http = { version = "0.6", features = ["fs", "cors"] }
|
tower-http = { version = "0.6", features = ["fs", "cors"] }
|
||||||
|
|
||||||
# excel sheet data
|
# excel sheet data
|
||||||
icarus = { git = "https://github.com/redstrate/Icarus", branch = "ver/2025.04.16.0000.0000", features = ["Warp", "Tribe", "ClassJob", "World", "TerritoryType", "Race", "Aetheryte", "EquipSlotCategory"], default-features = false }
|
icarus = { git = "https://github.com/redstrate/Icarus", branch = "ver/2025.04.16.0000.0000", features = ["Warp", "Tribe", "ClassJob", "World", "TerritoryType", "Race", "Aetheryte", "EquipSlotCategory", "Action"], default-features = false }
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
use icarus::Action::ActionSheet;
|
||||||
use icarus::Aetheryte::AetheryteSheet;
|
use icarus::Aetheryte::AetheryteSheet;
|
||||||
use icarus::ClassJob::ClassJobSheet;
|
use icarus::ClassJob::ClassJobSheet;
|
||||||
use icarus::EquipSlotCategory::EquipSlotCategorySheet;
|
use icarus::EquipSlotCategory::EquipSlotCategorySheet;
|
||||||
|
@ -219,4 +220,11 @@ impl GameData {
|
||||||
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_casttime(&mut self, action_id: u32) -> Option<u16> {
|
||||||
|
let sheet = ActionSheet::read_from(&mut self.game_data, Language::English)?;
|
||||||
|
let row = sheet.get_row(action_id)?;
|
||||||
|
|
||||||
|
row.Cast100ms().into_u16().copied()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue