-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
290 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { roll } from 'e'; | ||
import { Bank, LootTable } from 'oldschooljs'; | ||
|
||
import { MysteryBoxes } from '../../../bsoOpenables'; | ||
import getOSItem from '../../../util/getOSItem'; | ||
import resolveItems from '../../../util/resolveItems'; | ||
import { Plant } from '../../types'; | ||
|
||
export const zygomiteFarmingSource = [ | ||
{ | ||
name: 'Herbal zygomite', | ||
mutatedFromItems: resolveItems(['Torstol seed', 'Dwarf weed seed', 'Lantadyme seed']), | ||
seedItem: getOSItem('Herbal zygomite spores'), | ||
lootTable: new LootTable() | ||
.every( | ||
new LootTable().add('Mushroom spore').add('Mort myre fungus', [40, 100]).add('Mushroom', [20, 50]), | ||
5 | ||
) | ||
.every(new LootTable().add('Torstol').add('Dwarf weed').add('Cadantine').add('Kwuarm'), [40, 100]) | ||
.every(MysteryBoxes) | ||
}, | ||
{ | ||
name: 'Barky zygomite', | ||
mutatedFromItems: resolveItems(['Magic seed', 'Redwood tree seed']), | ||
seedItem: getOSItem('Barky zygomite spores'), | ||
lootTable: new LootTable() | ||
.every( | ||
new LootTable().add('Mushroom spore').add('Mort myre fungus', [40, 100]).add('Mushroom', [20, 50]), | ||
5 | ||
) | ||
.every(new LootTable().add('Elder logs').add('Mahogany logs'), [50, 100]) | ||
.every(MysteryBoxes) | ||
}, | ||
{ | ||
name: 'Fruity zygomite', | ||
mutatedFromItems: resolveItems(['Dragonfruit tree seed', 'Palm tree seed', 'Papaya tree seed']), | ||
seedItem: getOSItem('Fruity zygomite spores'), | ||
lootTable: new LootTable() | ||
.every( | ||
new LootTable().add('Mushroom spore').add('Mort myre fungus', [40, 100]).add('Mushroom', [20, 50]), | ||
5 | ||
) | ||
.every(new LootTable().add('Avocado').add('Mango').add('Papaya fruit').add('Lychee'), [50, 150]) | ||
.every(MysteryBoxes) | ||
} | ||
]; | ||
|
||
export const zygomitePlants: Plant[] = zygomiteFarmingSource.map(src => ({ | ||
id: src.seedItem.id, | ||
level: 105, | ||
plantXp: 181.5, | ||
checkXp: 0, | ||
harvestXp: 927.7, | ||
inputItems: new Bank().add(src.seedItem.id), | ||
name: src.name, | ||
aliases: [src.name.toLowerCase()], | ||
petChance: 7500, | ||
seedType: 'mushroom' as const, | ||
growthTime: 240, | ||
numOfStages: 6, | ||
chance1: 0, | ||
chance99: 0, | ||
chanceOfDeath: 5, | ||
needsChopForHarvest: false, | ||
fixedOutput: true, | ||
fixedOutputAmount: 6, | ||
givesLogs: false, | ||
givesCrops: true, | ||
defaultNumOfPatches: 0, | ||
canPayFarmer: false, | ||
canCompostPatch: true, | ||
canCompostandPay: false, | ||
additionalPatchesByQP: [[1, 1]], | ||
additionalPatchesByFarmLvl: [], | ||
additionalPatchesByFarmGuildAndLvl: [], | ||
timePerPatchTravel: 10, | ||
timePerHarvest: 5, | ||
onHarvest: ({ loot }) => { | ||
loot.add(src.lootTable.roll()); | ||
if (roll(1000)) { | ||
loot.add('Fungo'); | ||
} | ||
} | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.