Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add corruptedYoungllef creatable #6150

Merged
merged 4 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/lib/data/createables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,18 @@ const metamorphPets: Createable[] = [
outputItems: {
[itemID('Bone squirrel')]: 1
}
},
{
name: 'Corrupted youngllef',
inputItems: new Bank().add('Youngllef').freeze(),
outputItems: new Bank().add('Corrupted youngllef').freeze(),
customReq: async user => {
const [kcName, kcAmount] = await user.getKCByName('Corrupted gauntlet');
if (kcAmount < 1) {
return `You need to have at least 1 ${kcName} KC.`;
}
return null;
}
}
];

Expand Down Expand Up @@ -828,6 +840,12 @@ const revertMetamorphPets: Createable[] = [
[itemID('Giant squirrel')]: 1
},
noCl: true
},
{
name: 'Revert Corrupted youngllef',
inputItems: new Bank().add('Corrupted youngllef').freeze(),
outputItems: new Bank().add('Youngllef').freeze(),
noCl: true
}
];

Expand Down
22 changes: 22 additions & 0 deletions tests/unit/snapshots/banksnapshots.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6876,6 +6876,17 @@ exports[`OSB Creatables 1`] = `
"30042": 1,
},
},
{
"cantHaveItems": undefined,
"inputItems": {
"23759": 1,
},
"name": "Revert Corrupted youngllef",
"noCl": true,
"outputItems": {
"23757": 1,
},
},
{
"QPRequired": 150,
"cantHaveItems": undefined,
Expand Down Expand Up @@ -8292,6 +8303,17 @@ exports[`OSB Creatables 1`] = `
"30151": 1,
},
},
{
"cantHaveItems": undefined,
"customReq": [Function],
"inputItems": {
"23757": 1,
},
"name": "Corrupted youngllef",
"outputItems": {
"23759": 1,
},
},
{
"GPCost": 0,
"cantHaveItems": undefined,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/snapshots/clsnapshots.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Colossal Wyrm Agility (8)
Commander Zilyana (8)
Corporeal Beast (7)
Crazy archaeologist (3)
Creatables (686)
Creatables (687)
Creature Creation (7)
Cyclopes (8)
Dagannoth Kings (10)
Expand Down