protected void PrepareForLaunch(IElementAttackable target, AWeapon weapon) {
        Target = target;
        Weapon = weapon;
        SubscribeToWeaponChanges();

        DeliveryVehicleStrength = weapon.DeliveryVehicleStrength;

        SyncName();
        weapon.HandleFiringInitiated(target, this);

        _range = weapon.RangeDistance;
        IsOperational = true;
    }
Beispiel #2
0
    protected void PrepareForLaunch(IElementAttackable target, AWeapon weapon) {
        //D.Log(ShowDebugLog, "{0} is assigning target {1}.", DebugName, target.DebugName);
        Target = target;
        Weapon = weapon;
        Subscribe();

        DeliveryVehicleStrength = weapon.DeliveryVehicleStrength;

        AssignName();
        weapon.HandleFiringInitiated(target, this);

        _range = weapon.RangeDistance;
        IsOperational = true;
    }