Resource - 416rehman/mythic.obsidian GitHub Wiki

#gameplay

Many resources will be in the game to be used for crafting, upgrading, and more.

DataAsset

The resource data asset has the following structure.

  • Name
  • Mesh
  • OnHit
    • LootTable
    • MaxItems
  • OnDestroy
    • LootTable
    • MaxItems
  • MaxHealth

Spawning

Initially only the mesh from the DataAsset is loaded in the world, via a LootManager. When the player is within range, the mesh is swapped with the Resource BP. The Resource BP handles all interactions with the player.

Mining

The player can gather resources from many different sources, and each source will require a tool, and will yield different results.

The following are the sources and the tools required to gather resources from them:

  1. Trees (Axes - 3-6 hits) - Max Items: 1-3

    • Wood (10 per hit, 100% chance) - Common
    • Amber(3 per hit, 5% chance) - Rare
  2. Stone Nodes (Sickles - 4-8 hits) - Max Items: 1-3

    • Stone (4 per hit, 100% chance) Common
    • Metal ore (2 per hit, 70% chance) Common
    • Obsidian ore (1 per hit, 2% chance) Rare
    • Voidstone (1 per hit, 0.1% chance) Exotic - Said to be infused with the chaotic energy of the Void
    • Dragonstone(1 per hit, 0.1% chance) Exotic - A mineral said to come from trees that have been touched by the fiery breath of dragons

Foraging

Foraging doesn't require a tool, a button can be "held" to forage.

Shrubs can be foraged instantly by using a sickle.

  1. Mugwort
  2. Foxglove
  3. Dandelion
  4. Heather
  5. Hawthorn Berries
  6. Yarrow
  7. Yellowrocket

Mushrooms (1-3) Rare - Edible

Coal: Uncommon - "Fossil fuel, essential for blacksmithing and heating."

⚠️ **GitHub.com Fallback** ⚠️