Ejemplo n.º 1
0
        private void DoEquip(Creature wearer, UseItemCallbackSafe <ArmorBase> postItemCallback, bool enabled)
        {
            active            = enabled;
            this.userPrompted = true;

            ArmorBase retVal = ChangeEquipment(wearer, out string resultsOfUse);

            postItemCallback(true, resultsOfUse, Author(), retVal);
        }
Ejemplo n.º 2
0
    public void SwitchArmor(EquipmentInv InvData, out int lastItemID, out bool success)
    {
        success    = false;
        lastItemID = armorID;

        if (armorID != InvData.id)
        {
            armor     = (ArmorBase)InvData.data;
            armorID   = InvData.id;
            success   = true;
            armorData = InvData;
        }
    }
Ejemplo n.º 3
0
        internal void Update(ShipInfo rpInfo, RawShip rpData)
        {
            FirepowerBase.Update(rpInfo.FirepowerMinimum, rpInfo.FirepowerMaximum, rpData.ModernizedStatus[0]);
            TorpedoBase.Update(rpInfo.TorpedoMinimum, rpInfo.TorpedoMaximum, rpData.ModernizedStatus[1]);
            AABase.Update(rpInfo.AAMinimum, rpInfo.AAMaximum, rpData.ModernizedStatus[2]);
            ArmorBase.Update(rpInfo.ArmorMinimum, rpInfo.ArmorMaximum, rpData.ModernizedStatus[3]);
            LuckBase.Update(rpInfo.LuckMinimum, rpInfo.LuckMaximum, rpData.ModernizedStatus[4]);

            OnPropertyChanged(nameof(Firepower));
            OnPropertyChanged(nameof(Torpedo));
            OnPropertyChanged(nameof(AA));
            OnPropertyChanged(nameof(Armor));
            OnPropertyChanged(nameof(Evasion));
            OnPropertyChanged(nameof(LoS));
            OnPropertyChanged(nameof(ASW));
            OnPropertyChanged(nameof(Luck));
        }
Ejemplo n.º 4
0
        //we're going way tf buck to give this a menu when you equip it.

        protected override DisplayBase AttemptToUse(Creature target, UseItemCallbackSafe <ArmorBase> postItemUseCallbackSafe)
        {
            if (!CanUse(target, false, out string whyNot))
            {
                postItemUseCallbackSafe(false, whyNot, Author(), this);
                return(null);
            }
            else
            {
                if (target.intelligence > 20)
                {
                    return(BuildMenu(target, postItemUseCallbackSafe));
                }
                else
                {
                    active = true;
                    ArmorBase retVal = ChangeEquipment(target, out string resultsOfUse);
                    postItemUseCallbackSafe(true, resultsOfUse, Author(), retVal);
                    return(null);
                }
            }
        }
Ejemplo n.º 5
0
 public override bool Equals(ArmorBase other)
 {
     return(other is GooArmor);
 }
Ejemplo n.º 6
0
 public override bool Equals(ArmorBase other)
 {
     return(other is RedBodySuit);
 }
Ejemplo n.º 7
0
 public override bool Equals(ArmorBase other)
 {
     return(other is InquisitorsRobes);
 }
Ejemplo n.º 8
0
 public override bool Equals(ArmorBase other)
 {
     return(other is SeductiveArmor);
 }
Ejemplo n.º 9
0
 public override bool Equals(ArmorBase other)
 {
     return(other is GenericArmor generic && generic.id == id);
 }
Ejemplo n.º 10
0
 public override bool Equals(ArmorBase other)
 {
     return(other is PureMaraeArmor);
 }
Ejemplo n.º 11
0
 public override bool Equals(ArmorBase other)
 {
     return(other is ComfortableClothes);
 }
Ejemplo n.º 12
0
 public override bool Equals(ArmorBase other)
 {
     return(other is BimboSkirt);
 }
Ejemplo n.º 13
0
 public override bool Equals(ArmorBase other)
 {
     return(other is LustyMaidensArmor);
 }
Ejemplo n.º 14
0
 public override bool Equals(ArmorBase other)
 {
     return(other is NursesOutfit);
 }
Ejemplo n.º 15
0
 public override bool Equals(ArmorBase other)
 {
     return(other is LethiciteArmor);
 }
Ejemplo n.º 16
0
 public override bool Equals(ArmorBase other)
 {
     return(other is SluttySwimwear);
 }
Ejemplo n.º 17
0
 public override bool Equals(ArmorBase other)
 {
     return(other is NagaSilkDress);           //the color is more or less irrelevant, it's just cosmetic.
 }
Ejemplo n.º 18
0
 public override bool Equals(ArmorBase other)
 {
     return(other is BondageStraps);
 }
Ejemplo n.º 19
0
 public override bool Equals(ArmorBase other)
 {
     return(other is FurLoincloth);
 }
Ejemplo n.º 20
0
 public override bool Equals(ArmorBase other)
 {
     return(other is ChainmailBikini);
 }