public override void Update() { if (!isInitialized) { _armor = 3; _range = 200; _hp = 15; _damage = 11; _gun = new SiegeWeapon(_damage, GameScene.Instance); _cooldownValue = 100; _speed = 1; } base.Update(); }
public static bool Prefix(this Formation formation, UsableMachine usable, bool isPlayerOrder) // variable names must match exactly { if (formation.CountOfUnits < 1) { return(true); } if (!Main.IsPIC(formation) | formation.IsAIControlled) { return(true); } SiegeWeapon sw = (usable as SiegeWeapon); Traverse.Create(formation).Method("JoinDetachment", usable).GetValue(); Main.Log("Formation starting using: " + sw.GetSiegeEngineType().ToString(), true); return(false); }
public SelectSiegeWeapon(SiegeWeapon siegeWeapon) => this.SiegeWeapon = siegeWeapon;