Implement DebugLog ability action

This commit is contained in:
KingRainbow44 2023-08-13 19:40:59 -04:00
parent 12ac5b32d3
commit 543749bc9f
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 21 additions and 0 deletions

View File

@ -346,6 +346,8 @@ public class AbilityModifier implements Serializable {
public int[] callParamList;
public String funcName;
public String content;
public enum LuaCallType {
FromGroup,
CurGalleryControlGroup,

View File

@ -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;
}
}