forked from Grasscutters/Grasscutter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12ac5b3
commit 543749b
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/emu/grasscutter/game/ability/actions/ActionDebugLog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package emu.grasscutter.game.ability.actions; | ||
|
||
import com.google.protobuf.ByteString; | ||
import emu.grasscutter.Grasscutter; | ||
import emu.grasscutter.data.binout.AbilityModifier.AbilityModifierAction; | ||
import emu.grasscutter.game.ability.Ability; | ||
import emu.grasscutter.game.entity.GameEntity; | ||
|
||
@AbilityAction(AbilityModifierAction.Type.DebugLog) | ||
public final class ActionDebugLog extends AbilityActionHandler { | ||
@Override | ||
public boolean execute( | ||
Ability ability, AbilityModifierAction action, | ||
ByteString abilityData, GameEntity target | ||
) { | ||
Grasscutter.getLogger().debug("[Ability] DebugLog: {}", action.content); | ||
return true; | ||
} | ||
} |