Add battle buff for getting ambushed

This commit is contained in:
Melledy
2023-12-02 23:43:34 -08:00
parent 42de0c545f
commit 08d48df258
2 changed files with 7 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ public class GameConstants {
public static final int MATERIAL_COIN_ID = 2; // Material id for credits. DO NOT CHANGE
public static final int TRAILBLAZER_EXP_ID = 22;
// Battle
public static final int BATTLE_AMBUSH_BUFF_ID = 1000102;
// Gacha
public static final int GACHA_CEILING_MAX = 300; // Yes, I know this is in an excel

View File

@@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import emu.lunarcore.GameConstants;
import emu.lunarcore.data.GameData;
import emu.lunarcore.data.excel.CocoonExcel;
import emu.lunarcore.data.excel.StageExcel;
@@ -130,6 +131,9 @@ public class BattleService extends BaseGameService {
buff.addDynamicValue("SkillIndex", castedSkill.getIndex());
}
}
} else {
// Ambush buff (for monsters)
battle.addBuff(GameConstants.BATTLE_AMBUSH_BUFF_ID, -1, 1);
}
// Challenge