ModernUO/Projects/UOContent
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
..
Accounting fix(core): Removes implicit cast between Serial and uint (#728) 2021-08-25 00:27:19 -07:00
Commands fix(core): Removes implicit cast between Serial and uint (#728) 2021-08-25 00:27:19 -07:00
Configuration cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
Context Menus cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
Engines fix: Removes BodyValue and fixes modifying Body and BodyMod in props gump. (#743) 2021-08-28 22:56:00 -07:00
Gumps fix: Removes BodyValue and fixes modifying Body and BodyMod in props gump. (#743) 2021-08-28 22:56:00 -07:00
Holiday Stuff fix: Removes BodyValue and fixes modifying Body and BodyMod in props gump. (#743) 2021-08-28 22:56:00 -07:00
Items fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
Json/Converters Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
Migrations Fix: Fixes evil mages so they look correct for T2A/UOTD (#735) 2021-08-26 19:11:16 -07:00
Misc fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
Mobiles fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
Multis fix(core): Removes implicit cast between Serial and uint (#728) 2021-08-25 00:27:19 -07:00
Network fix: Cleanup IPoint3D calls (#704) 2021-08-19 09:11:48 -07:00
Regions fix(linq): Removes linq and fixes fishing error (#674) 2021-08-04 22:24:38 -07:00
Skills fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
Special Systems feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
Spells fix: Cleanup IPoint3D calls (#704) 2021-08-19 09:11:48 -07:00
Targets fix(core): Removes some uses of Linq (#421) 2021-01-18 21:05:11 -08:00
Utilities fix: Removes BodyValue and fixes modifying Body and BodyMod in props gump. (#743) 2021-08-28 22:56:00 -07:00
UOContent.csproj feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00