示例#1
0
        //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);
            }
        }
示例#2
0
        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));
                }
            }
        }