mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-08 08:33:22 +08:00
Implement DebugLog
ability action
This commit is contained in:
parent
12ac5b32d3
commit
543749bc9f
@ -346,6 +346,8 @@ public class AbilityModifier implements Serializable {
|
||||
public int[] callParamList;
|
||||
public String funcName;
|
||||
|
||||
public String content;
|
||||
|
||||
public enum LuaCallType {
|
||||
FromGroup,
|
||||
CurGalleryControlGroup,
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user