Added the ability for items to be activated upon cast instead of on completion of cast. These item effects also get interrupted by any movement.

This commit is contained in:
2023-12-22 07:39:56 -06:00
parent fd96b23110
commit 852bbbc5a0
9 changed files with 71 additions and 13 deletions
+2 -2
View File
@@ -53,9 +53,9 @@ ItemDatabase
}
Bandages
{
ItemScript = Restore
ItemScript = RestoreDuringCast
Description = Restores 30% health points over 6 seconds. The effect can be interrupted.
HP % Restore = 30%
HP % Restore = 5%,1,6
Cast Time = 6.0
Cooldown Time = 5.0
ItemCategory = Consumables
@@ -22,4 +22,13 @@ ItemScript
{
Attack % = 0,0.0
}
# Unlike an item or ability that requires a cast to perform, this applies a buff immediately and then moving cancels the buff mid-application.
RestoreDuringCast
{
HP Restore = 0,0.0,0.0
HP % Restore = 0,0.0,0.0
MP Restore = 0,0.0,0.0
MP % Restore = 0,0.0,0.0
}
}