v0.0.4
Data
General
- Added the entries effects as a new property to
ammo,crewEquipment,item,food,alchemy,medicineconsisting of:type- the effect itself (which matches an effect translation)- value - this can be of various types like
reloadSpeedIncreasePercent: 10orpointAmount: 5matching the placeholders in the translation
Backpack
- Added the
additionalSlotsproperty to all entries- Indicating how much slots this backpack offers when equipping it
Building Elements
- Added
shellDecorationsWall1,shellDecorationsWall2,shellDecorationsWall3,shellDecorationsWall4,shellDecorationsWall5,shellDecorationsCeiling1,shellDecorationsCeiling2(shell decoration) - Added
hut,hutFrame(prebuilt structure)
Items
- Updated the rarity of
gunroomGrog
Package
Backpack
- Added
additionalSlotsfield (typeof number, required)
Building Element
- Added
ceilingOnlyto theMountingRestrictions - Added
prebuiltStructureasBEType
Effects
- Added the
EffectandEffectTypetypes
Languages
- Added the
usesIconfield (typeof boolean, optional) - Added the new effects to
Languages- A utils method is available to populate the placeholders in the translation easily:
const item = UnifiedItems.latest["elixirOfFirmHand"];
const effect = item?.effects?.[1];
const effectTranslation = populateEffectTranslation(effect!, Languages.EN.latest[effect!.type as LanguageKey]!);
console.log(effectTranslation);
// Logs
{
"name": "",
"description": [
[
"Lasts for 15 min."
]
]
}- Updated the
descriptionfield type tostring[][]
Translation
General
Warning
Potentially Breaking Change
Wrapped all descriptions in another array to reflect the new structure moving forward:
- The first array resembles the paragraphs, while the second includes the rows of each paragraph
Example:
"coconut": {
"demo": {
"name": "Coconut",
"description": [ // first paragraph
[
"Found on the beach, and on palm trees along the shore in the Coastal Jungle." // p1 - sentence 1
],
[ // p2
"Increases Maximum Health.", // p2 - s1
"Lasts 7 minutes" // p2 - s2
]
]
}
}Effects
- Added the matching effect translation for the data additions
Example:
// Data:
"effects": [
{ // effect 1
"type": "percentageMeleeDamageIncrease",
"damageIncreasePercent": 10
},
{ // effect 2
"type": "durationMinutes",
"duration": 15
}
]
// Translation for effect 1:
"percentageMeleeDamageIncrease": {
"demo": {
"name": "",
"description": [
"Increases Melee Damage by {{damageIncreasePercent}}%."
]
}
}
// Result
"Increases Melee Damage by 10%."Food
- Added a second paragraph to the description of most entries, including the maximum health and duration