Skip to content

Commit

Permalink
Add corruptedYoungllef creatable (#6150)
Browse files Browse the repository at this point in the history
  • Loading branch information
Felris authored Oct 27, 2024
1 parent 6148d18 commit dccac79
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
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

0 comments on commit dccac79

Please sign in to comment.