mh3-data
Version:
Monster Hunter Tri data for monsters, quests, and weapons
28 lines • 918 B
JavaScript
/**
* Type assertion for Longsword special multiplier args
*/
export function assertLongswordWeaponMultipliers(longsword) {
if (!longsword) {
throw new Error('longsword parameters required for damage calculation');
}
if (!longsword.spiritGaugeColor) {
throw new Error('spiritGaugeColor required for longsword damage calculation');
}
}
/**
* Type assertion for Switch Axe special multiplier args
*/
export function assertSwitchAxeWeaponMultipliers(switchAxeMode) {
if (!switchAxeMode) {
throw new Error('switch axe mode required for damage calculations');
}
}
/**
* Type assertion for Sword and Shield special multiplier args
*/
export function assertSwordAndShieldWeaponMultipliers(swordAndShieldMode) {
if (!swordAndShieldMode) {
throw new Error('sword and shield mode required for damage calculations');
}
}
//# sourceMappingURL=assertions.js.map