ModernUO/Projects/UOContent/Items/Minor Artifacts
Kamron Batman 8ffd5a5bd0
fix: Updates races to properly support gargoyle equipment. (#744)
* Adds `RaceFlag` to the `Race` object. This is `1 << RaceIndex`
* Replaces `RequiredRace`  with `RequiredRaces` for items.
* Adds convenience flags for `RequiredRaces`
  ```cs
  
  public const int AllowAllRaces = 0x7;      // Race.Human.RaceFlag | Race.Elf.RaceFlag | Race.Gargoyle.RaceFlag
  public const int AllowHumanOrElves = 0x3;  // Race.Human.RaceFlag | Race.Elf.RaceFlag
  public const int AllowElvesOnly = 0x2;     // Race.Elf.RaceFlag
  public const int AllowGargoylesOnly = 0x4; // Race.Gargoyle.RaceFlag
  ```
* Example usage on an item:
  ```cs
  public override int RequiredRaces => Race.AllowHumanOrElves;
  ```
* Adds Wood and Stone armor material types
* Updates Woodland armor to Wood
* Adds proper messaging for race restrictions
* Adds gargoyle only for object properties
* Adds `CheckRace` functions for validating if a race or mobile can use the item:
  ```cs
  bool CheckRace(Race race);
  bool CheckRace(Mobile from, bool message = true);
  ```
2021-08-29 00:43:55 -07:00
..
ML fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
AdmiralsHeartyRum.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
AlchemistsBauble.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
ArcticDeathDealer.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
BlazeOfDeath.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
BowOfTheJukaKing.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
BurglarsBandana.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
CandelabraOfSouls.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
CaptainQuacklebushsCutlass.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
CavortingClub.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
ColdBlood.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
DreadPirateHat.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
EnchantedTitanLegBone.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
GhostShipAnchor.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
GlovesOfThePugilist.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
GoldBricks.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
GwennosHarp.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
HeartOfTheLion.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
IolosLute.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
LunaLance.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
NightsKiss.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
NoxRangersHeavyCrossbow.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
OrcishVisage.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
PhillipsWoodenSteed.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
PixieSwatter.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
PolarBearMask.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
SeahorseStatuette.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
ShieldOfInvulnerability.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
ShipModelOfTheHMSCape.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
StaffOfPower.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
VioletCourage.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
WrathOfTheDryad.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00