More usage of payItems

This commit is contained in:
AnimeGitB
2022-05-11 23:34:22 +09:30
committed by Melledy
parent b4d457d78a
commit b787c70cb0
3 changed files with 75 additions and 118 deletions

View File

@@ -272,6 +272,14 @@ public class Inventory implements Iterable<GameItem> {
}
}
public boolean payItem(int id, int count) {
return payItem(new ItemParamData(id, count));
}
public boolean payItem(ItemParamData costItem) {
return payItems(new ItemParamData[] {costItem}, 1, null);
}
public boolean payItems(ItemParamData[] costItems) {
return payItems(costItems, 1, null);
}