From 3b5d2a4e13c25afa67de5b544a33dfdd0659f961 Mon Sep 17 00:00:00 2001 From: Peptide90 <78795277+Peptide90@users.noreply.github.com> Date: Sun, 12 Jun 2022 03:58:34 +0100 Subject: [PATCH] Makes asteroids low yield, adds normal yield variant for mining (#8701) * Adds low yield mining loot table * adds low yield variant of asteroids --- .../Entities/Structures/Walls/asteroid.yml | 17 +++++++++++-- .../LootTables/mining_loot_table.yml | 24 ++++++++++++++++++- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/Walls/asteroid.yml b/Resources/Prototypes/Entities/Structures/Walls/asteroid.yml index 7959584d47..1b7161bdaf 100644 --- a/Resources/Prototypes/Entities/Structures/Walls/asteroid.yml +++ b/Resources/Prototypes/Entities/Structures/Walls/asteroid.yml @@ -2,14 +2,14 @@ id: AsteroidRock parent: BaseStructure name: asteroid rock - description: An asteroid. + description: A rocky asteroid. components: - type: Gatherable whitelist: tags: - Pickaxe loot: - Pickaxe: MiningLootTable + Pickaxe: MiningLootTableLowYield - type: Sprite sprite: Structures/Walls/asteroid_rock.rsi state: full @@ -41,3 +41,16 @@ - type: IconSmooth key: walls base: rock_ + +- type: entity + id: AsteroidRockMining + parent: BaseStructure + name: asteroid rock + description: An asteroid. + components: + - type: Gatherable + whitelist: + tags: + - Pickaxe + loot: + Pickaxe: MiningLootTable diff --git a/Resources/Prototypes/LootTables/mining_loot_table.yml b/Resources/Prototypes/LootTables/mining_loot_table.yml index 34eb4192eb..c53921f2b0 100644 --- a/Resources/Prototypes/LootTables/mining_loot_table.yml +++ b/Resources/Prototypes/LootTables/mining_loot_table.yml @@ -18,4 +18,26 @@ orGroup: Asteroid - id: UraniumOre1 prob: 0.025 - orGroup: Asteroid \ No newline at end of file + orGroup: Asteroid + +- type: entityLootTable + id: MiningLootTableLowYield + entries: + - id: SteelOre1 + prob: 0.05 + orGroup: Asteroid + - id: GoldOre1 + prob: 0.01 + orGroup: Asteroid + - id: SpaceQuartz1 + prob: 0.05 + orGroup: Asteroid + - id: PlasmaOre1 + prob: 0.025 + orGroup: Asteroid + - id: SilverOre1 + prob: 0.02 + orGroup: Asteroid + - id: UraniumOre1 + prob: 0.02 + orGroup: Asteroid