Expand description
Native content script-module dispatchers plus the per-ability
ability_info(level) composition for the content_raw-style ability map.
These are pub Rust fns that the native script ports
(behaviors::description_values, behaviors::expression’s
chest_item_choose) call. The balance primitives they use
(balance::ability_damage_from_id, balance::effect_duration, consts
AOE_COEF/OT_COEF/HEAL_COEF) live in crate::mechanics::balance.
Structs§
- Ability
Info - The typed result of the per-ability
ability_info(level)closures. Each struct holds every key that appears across the 18 bespoke ability infos, withNonefor keys a given ability does not set.
Functions§
- ability_
info - Native port of the
contentmodule’sget_ability_info(id, level): dispatch to the per-abilityability_info(level)closure baked into the ability map. ReturnsNonefor ability ids that have noability_info - get_
inventory_ levels - Native port of
content::get_inventory_levels(): the configured inventory levels (from_chapter_level,item_types). Borrowed from config rather than cloned; callers sort/filter a local view. - get_
item_ by_ code - Native port of
content::get_item_by_code(code): find the item template whosenext_mimic_item_codeequalscode, viaContentLookups::item_id_by_mimic_code(built at init fromItemTemplate::next_mimic_item_code). Returns the matching config returns thecontent_rawitem map (the chest script then readsitem.id).
Type Aliases§
- Inventory
Level - One entry of
content_raw::inventory_levels, mirroring the fields thechest_item_choose_scriptreads (from_chapter_level,item_types). This is exactlyessences::item_case::InventoryLevel.