pub fn item_power(ctx: &ItemPowerCtx<'_>) -> Result<i64>Expand description
Native port of item_power_calculate_script: power of the equipped loadout
with the candidate item minus the power without the same logical slot.
level=CharacterState.character.character_levelinventory= every equippedCharacterState.inventoryitem outside the candidate’s logical equipment slot.abilities=CharacterState.equipped_abilitiespets=CharacterState.equipped_pets
Then power_without = balance::character_power(...), push the candidate,
power_with = balance::character_power(...), return power_with - power_without.