Skip to content

Commit

Permalink
Update ThingSetMaker_CountEnabledAmmoOnly.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
CMDR-Bill-Doors committed Sep 4, 2024
1 parent e114220 commit 332df3a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Source/CombatExtended/ThingSetMaker_CountEnabledAmmoOnly.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using Verse;
Expand All @@ -20,7 +21,7 @@ bool CanSpawn(AmmoDef def)
return true;
}

protected override void Generate(ThingSetMakerParams parms, List<Thing> outThings)
public override void Generate(ThingSetMakerParams parms, List<Thing> outThings)
{
parms.validator = delegate (ThingDef d)
{
Expand Down Expand Up @@ -48,7 +49,7 @@ bool CanSpawn(AmmoDef def)
return true;
}

protected override void Generate(ThingSetMakerParams parms, List<Thing> outThings)
public override void Generate(ThingSetMakerParams parms, List<Thing> outThings)
{
parms.validator = delegate (ThingDef d)
{
Expand All @@ -65,11 +66,11 @@ public class ThingSetMaker_CountWithAmmo : ThingSetMaker_Count
{
IntRange magCount = new IntRange(2, 5);

bool random;
bool random = false;

bool canGenerateAdvanced;
bool canGenerateAdvanced = false;

protected override void Generate(ThingSetMakerParams parms, List<Thing> outThings)
public override void Generate(ThingSetMakerParams parms, List<Thing> outThings)
{
base.Generate(parms, outThings);
List<Thing> ammos = new List<Thing>();
Expand Down

0 comments on commit 332df3a

Please sign in to comment.