ModernUO/Projects/UOContent/Skills
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
..
Tracking fix(core): Removes 6017 handler (#411) 2021-01-16 13:43:16 -08:00
Anatomy.cs chore: Code cleanup (#399) 2021-01-10 09:14:03 -08:00
AnimalLore.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
AnimalTaming.cs fix(spells): Fixes interruption of spells (#702) 2021-08-18 12:17:42 -07:00
ArmsLore.cs chore(content): Updates to C# 9 syntax (#373) 2020-12-30 12:50:10 -08:00
Begging.cs fix(core): Adds Hashed & Hierarchical Timer Wheel (#655) 2021-07-11 22:42:06 -07:00
DetectHidden.cs chore(content): Updates to C# 9 syntax (#373) 2020-12-30 12:50:10 -08:00
Discordance.cs feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
EvalInt.cs chore: Code cleanup (#399) 2021-01-10 09:14:03 -08:00
ForensicEval.cs fix(core): Converts healthbar packets (#367) 2020-12-27 23:22:21 -08:00
Hiding.cs fix(linq): Removes linq and fixes fishing error (#674) 2021-08-04 22:24:38 -07:00
Inscribe.cs fix(core): Caches DateTime.NowUtc (#548) 2021-03-13 01:32:04 -08:00
ItemIdentification.cs Removes literal variables (#257) 2020-09-18 18:41:26 -07:00
Meditation.cs fix: Cleanup IPoint3D calls (#704) 2021-08-19 09:11:48 -07:00
Peacemaking.cs fix(core): Caches DateTime.NowUtc (#548) 2021-03-13 01:32:04 -08:00
Poisoning.cs fix(core): Adds Hashed & Hierarchical Timer Wheel (#655) 2021-07-11 22:42:06 -07:00
Provocation.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
RemoveTrap.cs Removes literal variables (#257) 2020-09-18 18:41:26 -07:00
Snooping.cs Removes literal variables (#257) 2020-09-18 18:41:26 -07:00
SpiritSpeak.cs fix(core): Adds Hashed & Hierarchical Timer Wheel (#655) 2021-07-11 22:42:06 -07:00
Stealing.cs fix(core): Caches DateTime.NowUtc (#548) 2021-03-13 01:32:04 -08:00
Stealth.cs fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
TasteID.cs Removes literal variables (#257) 2020-09-18 18:41:26 -07:00