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