landsandboat/scripts/items/puppetmaster_die.lua

18 lines
422 B
Lua
Raw Permalink Normal View History

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
-----------------------------------
---@type TItem
local itemObject = {}
2016-01-16 01:26:33 -05:00
itemObject.onItemCheck = function(target, item, caster)
2021-04-01 15:10:15 -04:00
return target:canLearnAbility(xi.jobAbility.PUPPET_ROLL)
end
2016-01-16 01:26:33 -05:00
itemObject.onItemUse = function(target)
2021-04-01 15:10:15 -04:00
target:addLearnedAbility(xi.jobAbility.PUPPET_ROLL)
end
2021-01-17 11:55:03 -05:00
return itemObject