-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix structural integrity values and cleanup mapped settings
- Loading branch information
1 parent
7431b08
commit e18ea01
Showing
6 changed files
with
134 additions
and
418 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
export const assignEach: (section: string, value: string, settings: string[]) => { [setting: string]: string } = ( | ||
section: string, | ||
value: string, | ||
settings: string[] | ||
) => { | ||
const prefix = `VPCFG_${section}_`; | ||
return settings.map((setting) => ({ [prefix + setting]: value })).reduce((prev, curr) => Object.assign(prev, curr)); | ||
}; | ||
|
||
export const ALL_STRUCTURAL_INTEGRITY_MODIFIER_SETTINGS = [ | ||
"wood", | ||
"stone", | ||
"iron", | ||
"hardWood", | ||
"marble", | ||
"ashstone", | ||
"ancient", | ||
]; | ||
|
||
export const ALL_DURABILITY_SETTINGS = [ | ||
"axes", | ||
"pickaxes", | ||
"hammer", | ||
"cultivator", | ||
"hoe", | ||
"weapons", | ||
"armor", | ||
"bows", | ||
"shields", | ||
"torch", | ||
]; | ||
|
||
export const ALL_EXPERIENCE_SETTINGS = [ | ||
"swords", | ||
"knives", | ||
"clubs", | ||
"polearms", | ||
"spears", | ||
"blocking", | ||
"axes", | ||
"bows", | ||
"elementalMagic", | ||
"bloodMagic", | ||
"unarmed", | ||
"pickaxes", | ||
"woodCutting", | ||
"crossbows", | ||
"jump", | ||
"sneak", | ||
"run", | ||
"swim", | ||
"fishing", | ||
"ride", | ||
]; | ||
|
||
export const ALL_GATHERING_SETTINGS = [ | ||
"wood", | ||
"fineWood", | ||
"coreWood", | ||
"elderBark", | ||
"yggdrasilWood", | ||
"stone", | ||
"blackMarble", | ||
"tinOre", | ||
"copperOre", | ||
"copperScrap", | ||
"ironScrap", | ||
"silverOre", | ||
"chitin", | ||
"feather", | ||
"grausten", | ||
"blackwood", | ||
"flametalOre", | ||
"proustitePowder", | ||
]; | ||
|
||
export const ALL_PICKABLE_SETTINGS = [ | ||
"edibles", | ||
"flowersAndIngredients", | ||
"materials", | ||
"valuables", | ||
"surtlingCores", | ||
"blackCores", | ||
"questItems", | ||
]; |
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.