ГНОМЫ (#411)
* This adds the basic wirework for the gnomes, very unfinished * GNOMES ARE DONE EXCEPT FOR GLUE WOOO * removes gnome id, fixes ai and punch sounds, comments out the code for glue to take fuel * changed sounds to non meme versions * HAT NOW GIVES THE GNOME ACCENT TOO * fixes a typo with Unclippable being Unclipable * removed cuffable component (iforgotaboutit) * added unrevivable to gnomes so defibs wont try (it was immpossible anyways but this is better) * removes scrap code i put in the repair system * remove the carrot mutation code i made (its bad) clean up some things in the repairable system * changes accent system from rplacging g to replacing no * Fix the conflict (plz work) * adds another comment bleh bleh im trying to fix things * PAIN.jpeg * work plz? * FIX FOR REAL * camel case mayhaps? * adds unfinished glue use code (you can still see lit or not lit when held >:/ ) * temporary fix * add: GNOMES REVAMPED * fix: fix accent, sounds and add spawners * add: gnome seeds to seed vendor --------- Co-authored-by: BITTERLYNX <gagestemmerman@gmail.com>
This commit is contained in:
@@ -108,13 +108,18 @@ public partial class SeedData
|
||||
|
||||
/// <summary>
|
||||
/// If true, the properties of this seed cannot be modified.
|
||||
/// to spare others like me: this DOES NOT prevent mutations
|
||||
/// </summary>
|
||||
[DataField("immutable")] public bool Immutable;
|
||||
|
||||
/// <summary>
|
||||
/// If true, you cannot clip this plant for more seeds, used for special plants such as the gnome plant
|
||||
/// </summary>
|
||||
[DataField("unclippable")] public bool Unclippable;
|
||||
|
||||
/// <summary>
|
||||
/// If true, there is only a single reference to this seed and it's properties can be directly modified without
|
||||
/// needing to clone the seed.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public bool Unique = false; // seed-prototypes or yaml-defined seeds for entity prototypes will not generally be unique.
|
||||
#endregion
|
||||
@@ -255,6 +260,7 @@ public partial class SeedData
|
||||
{
|
||||
DebugTools.Assert(!Immutable, "There should be no need to clone an immutable seed.");
|
||||
|
||||
|
||||
var newSeed = new SeedData
|
||||
{
|
||||
Name = Name,
|
||||
@@ -290,6 +296,7 @@ public partial class SeedData
|
||||
HarvestRepeat = HarvestRepeat,
|
||||
Potency = Potency,
|
||||
|
||||
Unclippable = Unclippable,
|
||||
Seedless = Seedless,
|
||||
Viable = Viable,
|
||||
Slip = Slip,
|
||||
|
||||
@@ -245,6 +245,13 @@ public sealed class PlantHolderSystem : EntitySystem
|
||||
_popup.PopupCursor(Loc.GetString("plant-holder-component-nothing-to-sample-message"), args.User);
|
||||
return;
|
||||
}
|
||||
//rejects clipping of unclippable plants
|
||||
if (component.Seed.Unclippable)
|
||||
{
|
||||
_popup.PopupCursor(Loc.GetString("plant-holder-component-nothing-to-sample-message"), args.User);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (component.Sampled)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user