fix: update ChainLightningSceptreInteraction to handle only secondary interactions and adjust Chain_Hit_Effect duration
- Added a check in ChainLightningSceptreInteraction to return early if the interaction type is not Secondary. - Reduced the duration of Chain_Hit_Effect from 0.6 to 0.05 for improved gameplay balance. - Removed the primary interaction from chain_lightning_sceptre.json to streamline item functionality. Tests: All tests passing. Build: ./gradlew clean build successful.
This commit is contained in:
+3
@@ -48,6 +48,9 @@ public final class ChainLightningSceptreInteraction extends SimpleInstantInterac
|
||||
protected void firstRun(@Nonnull InteractionType type,
|
||||
@Nonnull InteractionContext context,
|
||||
@Nonnull CooldownHandler cooldownHandler) {
|
||||
if (type != InteractionType.Secondary) {
|
||||
return;
|
||||
}
|
||||
CooldownHandler.Cooldown cooldown = cooldownHandler.getCooldown(
|
||||
COOLDOWN_ID, COOLDOWN_TIME, CHARGE_TIMES, FORCE_CREATE, INTERRUPT_RECHARGE);
|
||||
if (cooldown == null || cooldown.hasCooldown(false)) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"Name": "entity_effect.chain_lightning.hit",
|
||||
"Duration": 0.6,
|
||||
"Duration": 0.05,
|
||||
"OverlapBehavior": "Overwrite",
|
||||
"Debuff": true,
|
||||
"ApplicationEffects": {
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
"Compatible": true
|
||||
},
|
||||
"Interactions": {
|
||||
"Primary": "chain_lightning_sceptre_root",
|
||||
"Secondary": "chain_lightning_sceptre_root"
|
||||
},
|
||||
"IconProperties": {
|
||||
|
||||
Reference in New Issue
Block a user