Skip to content

v0.0.4

Choose a tag to compare

@herby2212 herby2212 released this 08 Apr 15:51
· 76 commits to main since this release

Data

General

  • Added the entries effects as a new property to ammo, crewEquipment, item, food, alchemy, medicine consisting of:
    • type - the effect itself (which matches an effect translation)
    • value - this can be of various types like reloadSpeedIncreasePercent: 10 or pointAmount: 5 matching the placeholders in the translation

Backpack

  • Added the additionalSlots property 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 additionalSlots field (typeof number, required)

Building Element

  • Added ceilingOnly to the MountingRestrictions
  • Added prebuiltStructure as BEType

Effects

  • Added the Effect and EffectType types

Languages

  • Added the usesIcon field (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 description field type to string[][]

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