2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
COR: Roll Clean-up, add unimplemented Rolls 65+
Adds the Following Rolls:
Naturalist's Roll*
Runeist's Roll
Bolter's Roll
Caster's Roll
Courser's Roll***
Blitzer's Roll
Tactician's Roll
Allie's Roll
Miser's Roll
Companion's Roll**
Avenger's Roll***
scripts: Adds/Updates Item, Ability, Effect Scripts.
scripts: Adds/Updates Ability, Modifier, Effect Globals.
scripts/src: Add MOD for SAVETP, PHANTOM_ROLL, and PHANTOM_ROLL_DURATION
src: Adds/Updates Ability, Modifier, Status Effects to map
src: Expands m_LearnedAbilities to account for new dice out of range in map/charentity.h.
src: Adds Logic and MOD for SAVETP to Weaponskill TP routine in map/utils/battleutils.cpp.
sql: Adds/Updates abilities, item_usable, status_effects.
sql: Modifies Animations for Dice to Pouch instead of a Firework Animation.
sql: The actual Animation ID for Dice usage doesn't appear to be in the index for item usage.
sql: Refactored animations based on Youtube and assumed sequential increase of animation id by roll.
sql: Corrected Snake Eye Animation to use "Roman I" animation.
src: Modifies Logic for COR Roll Ability/Effect Checking to account for new Rolls.
scripts/src: Modifies Logic for Eleven Roll to account for new Rolls Range and outlier stand alone Roll.
scripts: Cleans up ID, Name, and Description for Legacy Dice (most had ID 5477/Warrior Die/desc instead of correct detail).
scripts/src/sql: Corrected Reference from RUNEIST_S to RUNEISTS.
notes:
* Naturalist's Roll Item, Ability, and Effect are all implemented.
* Naturalist's Roll Effect is empty currently due to unimplemented Enhancing Magic Duration Logic (TODO).
** Companion's Roll gives two effects. To maintain consistency, Roll power is 1-11, and Corresponding values for mods are in the Companion's Roll Effect instead.
*** No Trusted Community Sources have values for these abilities. Used comparable rolls to adapt values (Fighters > Avengers, Blitzers > Coursers)
Tested All Rolls against a clean build, validated effects being applied using test script to echo value of associated MOD before and after roll.
Spot checked Lucky 11 rolls against new effects.
Tested SAVETP effect via Weaponskill usage.
TODO:
Add Logic to ability scripts to account for Phantom Roll + (SOA Rings) and Phantom Roll Duration (Effect from Armor).
2018-03-01 19:33:39 -08:00
|
|
|
-- ID: 5494
|
|
|
|
|
-- Puppetmaster Die
|
|
|
|
|
-- Teaches the job ability Puppet Roll
|
2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2024-08-24 12:32:37 -04:00
|
|
|
---@type TItem
|
2022-10-06 17:25:46 +03:00
|
|
|
local itemObject = {}
|
2016-01-16 01:26:33 -05:00
|
|
|
|
2026-05-25 20:42:11 -06:00
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
2021-04-01 15:10:15 -04:00
|
|
|
return target:canLearnAbility(xi.jobAbility.PUPPET_ROLL)
|
2018-08-07 19:36:44 -04:00
|
|
|
end
|
2016-01-16 01:26:33 -05:00
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
itemObject.onItemUse = function(target)
|
2021-04-01 15:10:15 -04:00
|
|
|
target:addLearnedAbility(xi.jobAbility.PUPPET_ROLL)
|
2020-03-19 18:41:42 -07:00
|
|
|
end
|
2021-01-17 11:55:03 -05:00
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
return itemObject
|