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

Forestry update #5737

Merged
merged 29 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f6fad78
Forestry update
nwjgit Feb 29, 2024
40334c2
minor fix
nwjgit Feb 29, 2024
ade3c22
fix a few issues
nwjgit Mar 2, 2024
a315e21
fix repeat trip & add forestry event option
nwjgit Mar 2, 2024
fdd6180
minor cleanup
nwjgit Mar 2, 2024
bec2f7c
normal Leaves
nwjgit Mar 2, 2024
4991c58
xp tweaks & add event tracking for future use with /data
nwjgit Mar 2, 2024
f97951b
xp fixes
nwjgit Mar 2, 2024
ffc2430
update Beehive event
nwjgit Mar 2, 2024
1bc62dc
fix egg rate, fix beehive rate/message
nwjgit Mar 4, 2024
81c61d0
remove lost log message if powerchopping
nwjgit Mar 4, 2024
5462958
add 15% variance to non verifiedXPRate events
nwjgit Mar 4, 2024
407a088
add 10% nest boost for wood cutting cape
nwjgit Mar 4, 2024
5bc22c4
fix felling axe not working with sulliusceps
nwjgit Mar 4, 2024
685058f
merge master
nwjgit Mar 4, 2024
75eb4e7
update creatablesTable
nwjgit Mar 4, 2024
c7f6165
add ForestryEvent inferface, change how xp is calculated, change how …
nwjgit Mar 5, 2024
e0c17f7
remove old commented out old code
nwjgit Mar 5, 2024
07dfa28
small fix
nwjgit Mar 5, 2024
b656e9c
small fix
nwjgit Mar 5, 2024
0be3417
fix feedback
nwjgit Mar 6, 2024
c876154
fix commandRunOptions
nwjgit Mar 6, 2024
45028c0
remove type from twitcherSetting
nwjgit Mar 6, 2024
1951141
fix import
nwjgit Mar 6, 2024
8e0d0c0
set default twitcher setting to egg without
nwjgit Mar 6, 2024
6f815fc
Merge branch 'master' into ForestryUpdate
nwjgit Mar 6, 2024
d12eb1e
fix twitcher glove clue chance
nwjgit Mar 6, 2024
ecee5da
remove Sulliuscep from forestry, make behive xp accurate and fix beeh…
nwjgit Mar 9, 2024
5211f03
change beeHive to beeHiveRepairs
nwjgit Mar 9, 2024
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
3 changes: 3 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ enum XpGainSource {
CamdozaalMining
CamdozaalSmithing
CamdozaalFishing
ForestryEvents
}

model XPGain {
Expand Down Expand Up @@ -758,6 +759,8 @@ model UserStats {

herbs_cleaned_while_farming_bank Json @default("{}") @db.Json

forestry_event_completions_bank Json @default("{}") @db.Json

@@map("user_stats")
}

Expand Down
3 changes: 3 additions & 0 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
};

export const enum Emoji {
MoneyBag = '<:MoneyBag:493286312854683654>',

Check warning on line 72 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'Emoji' is already declared in the upper scope on line 72 column 19

Check warning on line 72 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

'Emoji' is already declared in the upper scope on line 72 column 19
OSBot = '<:OSBot:601768469905801226>',
Joy = '😂',
Bpaptu = '<:bpaptu:660333438292983818>',
Expand Down Expand Up @@ -171,14 +171,14 @@
}

export enum ActivityGroup {
Skilling = 'Skilling',

Check warning on line 174 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'ActivityGroup' is already declared in the upper scope on line 174 column 13

Check warning on line 174 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

'ActivityGroup' is already declared in the upper scope on line 174 column 13
Clue = 'Clue',
Monster = 'Monster',
Minigame = 'Minigame'
}

export const enum Events {
Error = 'error',

Check warning on line 181 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'Events' is already declared in the upper scope on line 181 column 19

Check warning on line 181 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

'Events' is already declared in the upper scope on line 181 column 19
Log = 'log',
Verbose = 'verbose',
Warn = 'warn',
Expand All @@ -191,7 +191,7 @@
export const COINS_ID = 995;

export const enum PerkTier {
/**

Check warning on line 194 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'PerkTier' is already declared in the upper scope on line 194 column 19

Check warning on line 194 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

'PerkTier' is already declared in the upper scope on line 194 column 19
* Boosters
*/
One = 1,
Expand Down Expand Up @@ -222,7 +222,7 @@
}

export enum BitField {
IsPatronTier1 = 2,

Check warning on line 225 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'BitField' is already declared in the upper scope on line 225 column 13

Check warning on line 225 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

'BitField' is already declared in the upper scope on line 225 column 13
IsPatronTier2 = 3,
IsPatronTier3 = 4,
IsPatronTier4 = 5,
Expand Down Expand Up @@ -360,7 +360,7 @@
} as const;

export const enum PatronTierID {
One = '4608201',

Check warning on line 363 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'PatronTierID' is already declared in the upper scope on line 363 column 19

Check warning on line 363 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

'PatronTierID' is already declared in the upper scope on line 363 column 19
Two = '4608226',
Three = '4720356',
Four = '5262065',
Expand Down Expand Up @@ -509,6 +509,9 @@
export const UNDERWATER_AGILITY_THIEVING_TRAINING_SKILL = ['agility', 'thieving', 'agility+thieving'] as const;
export type UnderwaterAgilityThievingTrainingSkill = (typeof UNDERWATER_AGILITY_THIEVING_TRAINING_SKILL)[number];

export const TWITCHERS_GLOVES = ['egg', 'ring', 'seed', 'clue'] as const;
export type TwitcherGloves = (typeof TWITCHERS_GLOVES)[number];

export const busyImmuneCommands = ['admin', 'rp'];
export const usernameCache = new Map<string, string>();
export const badgesCache = new Map<string, string>();
Expand Down Expand Up @@ -551,7 +554,7 @@
]);

export enum PeakTier {
High = 'high',

Check warning on line 557 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'PeakTier' is already declared in the upper scope on line 557 column 13

Check warning on line 557 in src/lib/constants.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

'PeakTier' is already declared in the upper scope on line 557 column 13
Medium = 'medium',
Low = 'low'
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/data/Collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@
items: cyclopsCL
},
Forestry: {
alias: ['forestry'],
alias: ['forestry', 'forest', 'for'],
fmtProg: skillProg(SkillsEnum.Woodcutting),
allItems: forestryCL,
items: forestryCL
Expand All @@ -912,7 +912,7 @@
'Monkey Backpacks': {
alias: ['monkey', 'monkey bps', 'backpacks'],
kcActivity: {
Default: async (_, __, u) => u.lapsScores[6] || 0

Check warning on line 915 in src/lib/data/Collections.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

Unexpected number value in conditional. An explicit zero/NaN check is required

Check warning on line 915 in src/lib/data/Collections.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

Unexpected number value in conditional. An explicit zero/NaN check is required
},
items: monkeyBackpacksCL,
isActivity: true
Expand Down Expand Up @@ -1085,7 +1085,7 @@
Creatables: {
counts: false,
items: Createables.filter(i => i.noCl !== true)
.map(i => new Bank(i.outputItems).items().map(i => i[0].id))

Check warning on line 1088 in src/lib/data/Collections.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

'i' is already declared in the upper scope on line 1088 column 11

Check warning on line 1088 in src/lib/data/Collections.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

'i' is already declared in the upper scope on line 1088 column 11
.flat()
},
Leagues: {
Expand Down Expand Up @@ -1151,7 +1151,7 @@
)
.flat(100),
...Object.values(Monsters)
.map(m => (m && m.allItems ? m.allItems : []))

Check warning on line 1154 in src/lib/data/Collections.ts

View workflow job for this annotation

GitHub Actions / Node v18.12.0 - ubuntu-latest

Unexpected any value in conditional. An explicit comparison or type cast is required

Check warning on line 1154 in src/lib/data/Collections.ts

View workflow job for this annotation

GitHub Actions / Node v20 - ubuntu-latest

Unexpected any value in conditional. An explicit comparison or type cast is required
.flat(100)
]);

Expand Down
13 changes: 12 additions & 1 deletion src/lib/data/CollectionsExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,8 @@ export const cyclopsCL = resolveItems([
'Dragon defender'
]);
export const forestryCL = resolveItems([
'Fox whistle',
'Golden pheasant egg',
'Lumberjack hat',
'Lumberjack top',
'Lumberjack legs',
Expand All @@ -1638,10 +1640,19 @@ export const forestryCL = resolveItems([
'Forestry top',
'Forestry legs',
'Forestry boots',
"Twitcher's gloves",
'Funky shaped log',
'Log basket',
'Log brace',
'Clothes pouch blueprint'
'Clothes pouch blueprint',
'Cape pouch',
'Felling axe handle',
'Pheasant hat',
'Pheasant legs',
'Pheasant boots',
'Pheasant cape',
'Petal garland',
'Sturdy beehive parts'
]);

export const fossilIslandNotesCL = resolveItems([
Expand Down
25 changes: 17 additions & 8 deletions src/lib/data/buyables/forestryBuyables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ export const forestryBuyables: Buyable[] = [
name: 'Ritual mulch',
itemCost: new Bank().add('Anima-infused bark', 150).add('Maple logs', 10)
},
{
name: 'Clover insignia',
itemCost: new Bank().add('Anima-infused bark', 200).add('Oak logs', 15)
},
{
name: 'Powdered pollen',
itemCost: new Bank().add('Anima-infused bark', 300).add('Willow logs', 15)
},
{
name: 'Log brace',
itemCost: new Bank().add('Anima-infused bark', 3000).add('Maple logs', 300).add('Yew logs', 300)
Expand All @@ -37,10 +29,22 @@ export const forestryBuyables: Buyable[] = [
name: 'Clothes pouch blueprint',
itemCost: new Bank().add('Anima-infused bark', 10_000).add('Willow logs', 300).add('Maple logs', 300)
},
{
name: 'Cape pouch',
itemCost: new Bank().add('Anima-infused bark', 2500)
},
{
name: 'Log basket',
itemCost: new Bank().add('Anima-infused bark', 5000).add('Oak logs', 300).add('Willow logs', 300)
},
{
name: 'Felling axe handle',
itemCost: new Bank().add('Anima-infused bark', 10_000).add('Oak logs', 500)
},
{
name: "Twitcher's gloves",
itemCost: new Bank().add('Anima-infused bark', 5000).add('Willow logs', 500)
},
{
name: 'Funky shaped log',
itemCost: new Bank()
Expand All @@ -55,6 +59,11 @@ export const forestryBuyables: Buyable[] = [
.add('Magic logs', 500)
.add('Redwood logs', 500)
},
{
name: 'Sawmill voucher',
itemCost: new Bank().add('Anima-infused bark', 150),
outputItems: new Bank({ 'Sawmill voucher': 10 })
},
{
name: 'Lumberjack boots',
itemCost: new Bank().add('Anima-infused bark', 1000).add('Maple logs', 100).add('Yew logs', 200)
Expand Down
131 changes: 113 additions & 18 deletions src/lib/data/creatables/forestryCreatables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,18 @@ export const forestryCreatables: Createable[] = [
outputItems: new Bank().add('Nature offerings', 40)
},
{
name: 'Leprechaun charm',
inputItems: new Bank().add('Clover insignia').add('Emerald').add('Ball of wool'),
outputItems: new Bank().add('Leprechaun charm', 10),
requiredSkills: {
crafting: 70,
woodcutting: 70,
farming: 35
}
},
{
name: 'Bee on a stick',
inputItems: new Bank().add('Powdered pollen').add('Logs').add('Ball of wool'),
outputItems: new Bank().add('Bee on a stick', 10),
name: 'Sturdy harness',
inputItems: new Bank().add('Log brace').add('Steel nails', 45).add('Rope', 2).add('Adamantite bar', 3),
outputItems: new Bank().add('Sturdy harness'),
requiredSkills: {
hunter: 50,
woodcutting: 35
smithing: 75,
woodcutting: 75
}
},
{
name: 'Sturdy harness',
inputItems: new Bank().add('Log brace').add('Steel nails', 45).add('Rope', 2).add('Adamantite bar', 3),
outputItems: new Bank().add('Sturdy harness'),
name: 'Forestry basket',
inputItems: new Bank().add('Forestry kit').add('Log basket').add('Sturdy harness'),
outputItems: new Bank().add('Forestry basket'),
requiredSkills: {
smithing: 75,
woodcutting: 75
Expand All @@ -49,5 +39,110 @@ export const forestryCreatables: Createable[] = [
crafting: 50,
woodcutting: 50
}
},
{
name: 'Pheasant hat',
inputItems: new Bank().add('Pheasant tail feathers', 15).add('Thread'),
outputItems: new Bank().add('Pheasant hat'),
requiredSkills: {
crafting: 2
}
},
{
name: 'Pheasant legs',
inputItems: new Bank().add('Pheasant tail feathers', 15).add('Thread'),
outputItems: new Bank().add('Pheasant legs'),
requiredSkills: {
crafting: 2
}
},
{
name: 'Pheasant boots',
inputItems: new Bank().add('Pheasant tail feathers', 15).add('Thread'),
outputItems: new Bank().add('Pheasant boots'),
requiredSkills: {
crafting: 2
}
},
{
name: 'Pheasant cape',
inputItems: new Bank().add('Pheasant tail feathers', 15).add('Thread'),
outputItems: new Bank().add('Pheasant cape'),
requiredSkills: {
crafting: 2
}
},
{
name: 'Bronze felling axe',
inputItems: new Bank().add('Felling axe handle').add('Bronze axe'),
outputItems: new Bank().add('Bronze felling axe')
},
{
name: 'Iron felling axe',
inputItems: new Bank().add('Felling axe handle').add('Iron axe'),
outputItems: new Bank().add('Iron felling axe')
},
{
name: 'Steel felling axe',
inputItems: new Bank().add('Felling axe handle').add('Steel axe'),
outputItems: new Bank().add('Steel felling axe')
},
{
name: 'Black felling axe',
inputItems: new Bank().add('Felling axe handle').add('Black axe'),
outputItems: new Bank().add('Black felling axe')
},
{
name: 'Mithril felling axe',
inputItems: new Bank().add('Felling axe handle').add('Mithril axe'),
outputItems: new Bank().add('Mithril felling axe')
},
{
name: 'Adamant felling axe',
inputItems: new Bank().add('Felling axe handle').add('Adamant axe'),
outputItems: new Bank().add('Adamant felling axe')
},
{
name: 'Rune felling axe',
inputItems: new Bank().add('Felling axe handle').add('Rune axe'),
outputItems: new Bank().add('Rune felling axe')
},
{
name: 'Dragon felling axe',
inputItems: new Bank().add('Felling axe handle').add('Dragon axe'),
outputItems: new Bank().add('Dragon felling axe')
},
{
name: 'Crystal felling axe',
inputItems: new Bank().add('Felling axe handle').add('Crystal axe'),
outputItems: new Bank().add('Crystal felling axe')
},
{
name: '3rd age felling axe',
inputItems: new Bank().add('Felling axe handle').add('3rd age axe'),
outputItems: new Bank().add('3rd age felling axe')
},
{
name: 'Pheasant',
inputItems: new Bank().add('Beaver').add('Golden pheasant egg'),
outputItems: new Bank().add('Pheasant')
},
{
name: 'Revert Pheasant',
inputItems: new Bank().add('Pheasant'),
outputItems: new Bank().add('Beaver').add('Golden pheasant egg'),
noCl: true
},
{
// use id to not get mixed up with the "Fox" quest item
name: 'Fox',
inputItems: new Bank().add('Beaver').add('Fox whistle'),
outputItems: new Bank().add(28_670)
},
{
name: 'Revert Fox',
inputItems: new Bank().add(28_670),
outputItems: new Bank().add('Beaver').add('Fox whistle'),
noCl: true
}
];
Loading
Loading