You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skills that use the secondary weapon are picked by class instead of Skill.dat TYPE c5 #3291
SP skills such as the Blaster and Gravity SP shots
NosCore ignores the column. DamageCalculator.SelectAttackContext guesses the weapon instead: an archer's melee skill and anyone else's ranged skill use the secondary weapon. The guess and the data disagree on:
Skill
Class / type
Data
NosCore today
298 Stun Shot, 299 Exploding Shot
swordsman, melee
secondary (crossbow)
main (sword)
394 Magic Beam
mage, melee
secondary (gun)
main (staff)
385 Target Weak Points
archer, melee
secondary
secondary
Blaster SP skills 944-954
archer, ranged and magic
secondary
main (bow)
Archer non-attack skills (Capture, Haste, ...) and SP melee skills without the flag
archer, melee
main
secondary
Fix
Parse TYPE c5 into a Skill.UsesSecondaryWeapon column.
Carry it on SkillInfo.
Pick the weapon profile from it. The skill's Type still decides which defence and dodge the target uses.
Activity
Read the secondary-weapon flag and the skill kind from Skill.dat