public override void Mutate(State.State state)
 {
     foreach (var ingredient in _changes)
     {
         state.IncrementCargo(ingredient.Key, ingredient.Value);
     }
 }
Esempio n. 2
0
 public override void Mutate(State.State state)
 {
     if (state.Cargo.Ingredients.ContainsKey(Name))
     {
         state.IncrementCargo(Name, Count);
     }
 }
        public override void Mutate(State.State state)
        {
            foreach (var ingredient in IngredientsConsumed)
            {
                state.IncrementCargo(ingredient.Entry.Data.Name, -1 * ingredient.Size);
            }

            state.OnBlueprintCrafted(this);
        }
Esempio n. 4
0
        public override void Mutate(State.State state)
        {
            var blueprint = state.Blueprints.FirstOrDefault(x => x.BlueprintName == EquipmentName && x.Grade == Class);

            if (blueprint != null)
            {
                foreach (var item in blueprint.Ingredients)
                {
                    state.IncrementCargo(item.Entry.Data.Name, -item.Size);
                    changes.Add(item.Entry.Data.Name, -item.Size);
                }
            }
        }
Esempio n. 5
0
 public override void Mutate(State.State state)
 {
     state.IncrementCargo(DataName, Size);
 }
Esempio n. 6
0
 public override void Mutate(State.State state)
 {
     state.IncrementCargo(CommodityName, Size);
 }
Esempio n. 7
0
 public override void Mutate(State.State state)
 {
     state.IncrementCargo(MaterialName, Size, false);
 }
Esempio n. 8
0
 public override void Mutate(State.State state)
 {
     state.IncrementCargo(IngredientRemoved, -1 * RemovedQuantity);
     state.IncrementCargo(IngredientAdded, AddedQuantity);
 }