mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-22 09:39:50 +08:00
d1d39db56c
-De-hardcode elemental orb values -De-hardcode exp items -Change ShopChest format (temporary, drop system overhaul will replace it entirely) -Food healing actually uses Ability data for real HP amounts
21 lines
576 B
Java
21 lines
576 B
Java
package emu.grasscutter.game.props.ItemUseAction;
|
|
|
|
import emu.grasscutter.game.props.ItemUseOp;
|
|
|
|
public class ItemUseUnlockHomeBgm extends ItemUseInt {
|
|
@Override
|
|
public ItemUseOp getItemUseOp() {
|
|
return ItemUseOp.ITEM_USE_UNLOCK_HOME_BGM;
|
|
}
|
|
|
|
public ItemUseUnlockHomeBgm(String[] useParam) {
|
|
super(useParam);
|
|
}
|
|
|
|
@Override
|
|
public boolean useItem(UseItemParams params) {
|
|
params.player.getHome().addUnlockedHomeBgm(this.i);
|
|
return true; // Probably best to remove the item even if the bgm was already unlocked.
|
|
}
|
|
}
|