The glowing forest anomaly (#24351)

* sans

* Papyrus

* add to game

* tweak stick

* fixes

* Update Resources/Prototypes/Entities/Objects/Misc/kudzu.yml

Co-authored-by: Kara <lunarautomaton6@gmail.com>

* Update Resources/Prototypes/Entities/Structures/Specific/Anomaly/anomalies.yml

Co-authored-by: Kara <lunarautomaton6@gmail.com>

---------

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Ed
2024-01-21 04:31:12 +03:00
committed by GitHub
parent 691c3d55b8
commit b3b64e6cf2
36 changed files with 368 additions and 40 deletions

View File

@@ -1,5 +1,4 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Server.Spawners.Components
{
@@ -7,15 +6,18 @@ namespace Content.Server.Spawners.Components
public sealed partial class RandomSpawnerComponent : ConditionalSpawnerComponent
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("rarePrototypes", customTypeSerializer:typeof(PrototypeIdListSerializer<EntityPrototype>))]
public List<string> RarePrototypes { get; set; } = new();
[DataField]
public List<EntProtoId> RarePrototypes { get; set; } = new();
[ViewVariables(VVAccess.ReadWrite)]
[DataField("rareChance")]
[DataField]
public float RareChance { get; set; } = 0.05f;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("offset")]
[DataField]
public float Offset { get; set; } = 0.2f;
[DataField]
public bool DeleteSpawnerAfterSpawn = true;
}
}