Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Mar 13, 2024
1 parent ea82cc4 commit 1380b83
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 1 deletion.
133 changes: 133 additions & 0 deletions src/lib/customItems/customItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11584,3 +11584,136 @@ setCustomItem(
},
1
);

setCustomItem(
73_112,
'Golden bunny ears',
'Bronze full helm',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_113,
'Easter-egg delight',
'Coal',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_114,
'Easter-egg salad',
'Coal',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_115,
'Cute bunny cape',
'Red cape',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_116,
'Easter jumper',
'Bronze platebody',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_117,
'Bunny plushie',
'Coal',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_118,
'Easter tunic',
'Bronze platebody',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_119,
'Easter breeches',
'Bronze platelegs',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_120,
'Easter shoes',
'Bronze boots',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);

setCustomItem(
73_121,
'Easter crate (s5)',
'Coal',
{
customItemData: {
cantDropFromMysteryBoxes: true
},
buy_limit: 100
},
1
);

setCustomItem(
73_122,
'Easter crate key (s5)',
'Coal',
{
customItemData: {
cantDropFromMysteryBoxes: true
}
},
1
);
20 changes: 20 additions & 0 deletions src/lib/keyCrates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,25 @@ export const keyCrates: Crate[] = [
1,
89
)
},
{
item: getOSItem('Easter crate (s5)'),
key: getOSItem('Easter crate key (s5)'),
keyCostGP: 10_000_000,
table: new LootTable()
.tertiary(5000, 'Golden bunny ears')
.tertiary(750, new LootTable().add('Cute bunny cape').add('Bunny plushie'))
.add(
new LootTable()
.add('Easter jumper')
.add('Easter-egg delight')
.add('Easter-egg salad')
.add('Easter tunic')
.add('Easter breeches')
.add('Easter shoes'),
1,
1
)
.add(new LootTable().add('Carrot').add('Egg').add('Easter egg'), [2, 3], 99)
}
];
3 changes: 2 additions & 1 deletion src/lib/util/handleTripFinish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,14 @@ const tripFinishEffects: TripFinishEffect[] = [
}
}
dropratePerMinute = Math.ceil(dropratePerMinute / 3);
dropratePerMinute = Math.ceil(dropratePerMinute / 3);
if (user.isIronman) {
dropratePerMinute = Math.ceil(dropratePerMinute / 3);
}
const minutes = Math.floor(data.duration / Time.Minute);
for (let i = 0; i < minutes; i++) {
if (roll(dropratePerMinute)) {
const loot = new Bank().add('Festive crate (s4)');
const loot = new Bank().add('Easter crate (s5)');
await user.addItemsToBank({ items: loot, collectionLog: true });
messages.push(bold(`You found ${loot}!`));
break;
Expand Down
10 changes: 10 additions & 0 deletions tests/unit/snapshots/banksnapshots.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4329,6 +4329,16 @@ exports[`BSO Buyables 1`] = `
"name": "Festive crate key (s4)",
"outputItems": undefined,
},
{
"gpCost": 10000000,
"ironmanPrice": 1000000,
"itemCost": Bank {
"bank": {},
"frozen": false,
},
"name": "Easter crate key (s5)",
"outputItems": undefined,
},
{
"customReq": [Function],
"gpCost": 1000000,
Expand Down
1 change: 1 addition & 0 deletions tests/unit/snapshots/clsnapshots.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Dyed Items (83)
Dyed Items (Discontinued) (18)
Easter 2022 (3)
Easter 2023 (13)
Easter crate (s5) (14)
Easy Treasure Trails (131)
Elite Treasure Trail Rewards (Rare) (39)
Elite Treasure Trails (59)
Expand Down

0 comments on commit 1380b83

Please sign in to comment.