mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 13:54:37 +01:00
Add battle buff for getting ambushed
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user