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); }
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; } }
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)); }
//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); } } }
public override bool Equals(ArmorBase other) { return(other is GooArmor); }
public override bool Equals(ArmorBase other) { return(other is RedBodySuit); }
public override bool Equals(ArmorBase other) { return(other is InquisitorsRobes); }
public override bool Equals(ArmorBase other) { return(other is SeductiveArmor); }
public override bool Equals(ArmorBase other) { return(other is GenericArmor generic && generic.id == id); }
public override bool Equals(ArmorBase other) { return(other is PureMaraeArmor); }
public override bool Equals(ArmorBase other) { return(other is ComfortableClothes); }
public override bool Equals(ArmorBase other) { return(other is BimboSkirt); }
public override bool Equals(ArmorBase other) { return(other is LustyMaidensArmor); }
public override bool Equals(ArmorBase other) { return(other is NursesOutfit); }
public override bool Equals(ArmorBase other) { return(other is LethiciteArmor); }
public override bool Equals(ArmorBase other) { return(other is SluttySwimwear); }
public override bool Equals(ArmorBase other) { return(other is NagaSilkDress); //the color is more or less irrelevant, it's just cosmetic. }
public override bool Equals(ArmorBase other) { return(other is BondageStraps); }
public override bool Equals(ArmorBase other) { return(other is FurLoincloth); }
public override bool Equals(ArmorBase other) { return(other is ChainmailBikini); }