//Fazer Decompose public override void ApplyActionEffects(WorldModelDST worldModel) { worldModel.Cycle += this.Duration; worldModel.AddToPossessedItems(this.Target, this.Quantity); worldModel.RemoveFromWorld(this.Target, this.Quantity); if (!worldModel.WorldHas(this.Target)) { worldModel.RemoveAction("Pickup_" + this.Target); } }
public override void ApplyActionEffects(WorldModelDST worldModel) { worldModel.Cycle += this.Duration; if (PickableConverter.ContainsKey(this.Target)) { worldModel.RemoveFromWorld(this.Target, 1); worldModel.AddToPossessedItems(PickableConverter[this.Target], 1); if (!worldModel.WorldHas(this.Target)) { worldModel.RemoveAction(string.Concat("Pick_", this.Target)); } } }