Skip to content

Commit

Permalink
Return SS220 IonStormRework after merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
stalengd committed Dec 1, 2024
1 parent 28561ee commit 6f32d13
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Content.Server/Silicons/Laws/IonStormSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public sealed class IonStormSystem : EntitySystem
private const string Drinks = "IonStormDrinks";
[ValidatePrototypeId<DatasetPrototype>]
private const string Foods = "IonStormFoods";
// SS220 IonStrom Laws rework start
[ValidatePrototypeId<DatasetPrototype>]
private const string BrickedLaw = "IonStormBrickedLaws";
// SS220 IonStrom Laws rework end

/// <summary>
/// Randomly alters the laws of an individual silicon.
Expand Down Expand Up @@ -111,7 +115,10 @@ public void IonStormTarget(Entity<SiliconLawBoundComponent, IonStormTargetCompon
}

// generate a new law...
var newLaw = GenerateLaw();
// SS220 IonStrom Laws rework start
// var newLaw = GenerateLaw();
var newLaw = Pick(BrickedLaw);
// SS220 IonStrom Laws rework end

// see if the law we add will replace a random existing law or be a new glitched order one
if (laws.Laws.Count > 0 && _robustRandom.Prob(target.ReplaceChance))
Expand Down

0 comments on commit 6f32d13

Please sign in to comment.