Files
Grasscutter/src/main/java/emu/grasscutter/game/props/ItemUseAction/ItemUseUnlockHomeBgm.java
T
AnimeGitB d1d39db56c [BREAKING] Item Usage Overhaul
-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
2022-10-14 00:00:40 +10:30

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.
}
}