Skip to content

Commit

Permalink
Add Valamore Farming Patches (#5966)
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum authored Aug 6, 2024
1 parent 99adf76 commit 7816fe4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/lib/skilling/functions/calcsFarming.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { randInt } from 'e';

import { QuestID } from '../../minions/data/quests';
import type { Plant } from '../types';
import { SkillsEnum } from '../types';

Expand Down Expand Up @@ -28,6 +29,19 @@ export function calcNumOfPatches(plant: Plant, user: MUser, qp: number): [number
break;
}
}

if (user.user.finished_quest_ids.includes(QuestID.ChildrenOfTheSun)) {
switch (plant.seedType) {
case 'allotment':
numOfPatches += 2;
break;
case 'herb':
case 'flower':
numOfPatches += 1;
break;
}
}

return [numOfPatches];
}

Expand Down

0 comments on commit 7816fe4

Please sign in to comment.