Nuke spaceshroom ore (#28110)

nuke spaceshroom ore
This commit is contained in:
Ed
2024-05-18 19:17:46 +03:00
committed by GitHub
parent 8bbd2394ef
commit 225a05ecdb
6 changed files with 41 additions and 39 deletions

View File

@@ -1,4 +1,6 @@
using Content.Shared.EntityList;
using Content.Shared.Whitelist;
using Robust.Shared.Prototypes;
namespace Content.Server.Gatherable.Components;
@@ -10,7 +12,7 @@ public sealed partial class GatherableComponent : Component
/// Whitelist for specifying the kind of tools can be used on a resource
/// Supports multiple tags.
/// </summary>
[DataField("whitelist", required: true)]
[DataField(required: true)]
public EntityWhitelist? ToolWhitelist;
/// <summary>
@@ -18,14 +20,20 @@ public sealed partial class GatherableComponent : Component
/// (Tag1, Tag2, LootTableID1, LootTableID2 are placeholders for example)
/// --------------------
/// useMappedLoot: true
/// whitelist:
/// toolWhitelist:
/// tags:
/// - Tag1
/// - Tag2
/// mappedLoot:
/// loot:
/// Tag1: LootTableID1
/// Tag2: LootTableID2
/// </summary>
[DataField("loot")]
public Dictionary<string, string>? MappedLoot = new();
[DataField]
public Dictionary<string, ProtoId<EntityLootTablePrototype>>? Loot = new();
/// <summary>
/// Random shift of the appearing entity during gathering
/// </summary>
[DataField]
public float GatherOffset = 0.3f;
}