From ec544489945ed0e895cf618583e2190f4e72f386 Mon Sep 17 00:00:00 2001 From: alzeih Date: Thu, 18 Mar 2010 19:03:53 +1300 Subject: [PATCH] remove hack free harvester from TiberiumRefinery --- OpenRA.Mods.Cnc/TiberiumRefinery.cs | 10 +--------- mods/cnc/structures.yaml | 5 +++++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/OpenRA.Mods.Cnc/TiberiumRefinery.cs b/OpenRA.Mods.Cnc/TiberiumRefinery.cs index 500067f61c..adae4d95c2 100644 --- a/OpenRA.Mods.Cnc/TiberiumRefinery.cs +++ b/OpenRA.Mods.Cnc/TiberiumRefinery.cs @@ -1,4 +1,4 @@ -#region Copyright & License Information +#region Copyright & License Information /* * Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford. * This file is part of OpenRA. @@ -34,14 +34,6 @@ namespace OpenRA.Mods.Cnc public TiberiumRefinery(Actor self) { this.self = self; - self.World.AddFrameEndTask( - w => - { /* create the free harvester! */ - var harvester = w.CreateActor("harv", self.Location + new int2(0, 2), self.Owner); - var unit = harvester.traits.Get(); - unit.Facing = 64; - harvester.QueueActivity(new Harvest()); - }); } public int2 DeliverOffset { get { return new int2(0, 2); } } diff --git a/mods/cnc/structures.yaml b/mods/cnc/structures.yaml index e797df7fe6..7244ee41fd 100644 --- a/mods/cnc/structures.yaml +++ b/mods/cnc/structures.yaml @@ -62,6 +62,11 @@ PROC: Capacity: 1000 CustomSellValue: Value: 600 + HasUnitOnBuild: + Unit: HARV + InitialActivity: Harvest + SpawnOffset: 1,2 + Facing: 64 SILO: Inherits: ^Building