ModernUO/Projects/Server/Items
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
..
BaseMulti.cs fix(core): Converts to ref struct enumerators (#426) 2021-01-22 19:41:44 -08:00
Container.cs feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
Containers.cs fix(core): Fixes several serialization issues (#355) 2020-12-23 07:11:41 -08:00
Item.cs fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
ItemBounds.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
Layer.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
LightType.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
SecureTradeContainer.cs fix(core): Converts some packets & misc fixes/cleanup (#414) 2021-01-16 21:01:54 -08:00
VirtualCheck.cs fix(currency): Changes virtual checks setting (#598) 2021-05-12 10:52:34 -07:00
VirtualHair.cs fix(core): Removes implicit cast between Serial and uint (#728) 2021-08-25 00:27:19 -07:00