mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 15:24:44 +01:00
Increase the amount of materials given by /giveall
This commit is contained in:
@@ -38,12 +38,12 @@ public class GiveAllCommand implements CommandHandler {
|
|||||||
for (ItemExcel excel : GameData.getItemExcelMap().values()) {
|
for (ItemExcel excel : GameData.getItemExcelMap().values()) {
|
||||||
int purpose = excel.getPurposeType();
|
int purpose = excel.getPurposeType();
|
||||||
if ((purpose >= 1 && purpose <= 7) || purpose == 10) {
|
if ((purpose >= 1 && purpose <= 7) || purpose == 10) {
|
||||||
items.add(new GameItem(excel, 1000));
|
items.add(new GameItem(excel, excel.getPileLimit()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Credits
|
// Credits
|
||||||
items.add(new GameItem(2, 50_000_000));
|
items.add(new GameItem(2, Integer.MAX_VALUE));
|
||||||
|
|
||||||
// Add to target's inventory
|
// Add to target's inventory
|
||||||
target.getInventory().addItems(items, true);
|
target.getInventory().addItems(items, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user