ModernUO/Projects/UOContent/Items/Weapons
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
..
Abilities feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
Artifacts fix(codegen): Codegens Weapon artifacts (#689) 2021-08-17 09:00:12 -07:00
Axes fix(codegen): Code gens axes (#690) 2021-08-17 20:37:53 -07:00
Knives fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
Maces fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
ML Weapons fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
PoleArms fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
Ranged fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
SE Weapons fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
SpearsAndForks fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
Staves fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
Swords fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
Wooden fix(codegen): Codegens Weapons (#698) 2021-08-19 09:12:24 -07:00
BaseMeleeWeapon.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
BaseWeapon.cs fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
Fists.cs fix(codegen): Adds default codegen option for save flags. Fixes world load issues. (#707) 2021-08-19 22:51:44 -07:00
HitLower.cs fix(core): Adds Hashed & Hierarchical Timer Wheel (#655) 2021-07-11 22:42:06 -07:00
SlayerEntry.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
SlayerGroup.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
SlayerName.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
WeaponEnums.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00