View Single Post
  #9  
Old 01-19-2018, 01:24 AM
Darkscis
Sarnak
 
Join Date: Mar 2015
Posts: 62
Default

Quote:
Originally Posted by caravellex View Post
I think it should still allow class restrictions at least
To an extent, it will work for player races. It won't check class for your other races though. The way your code currently works after you changed it looks logically like this;

If Race is NOT in player races, return true we can wear it. The code block ends right there and does not check the class restrictions because you have told it to return.

If Race IS in player races, then check classes. If the class cannot wear it, return false. Otherwise, return true we can wear the item.

As Uleat said above, if you don't want it to restrict race at all; comment out the race check but don't force an early return. If you still want the race check to work, but you just want certain extra races allowed then you will need to modify GetPlayerRaceBit and add your new race(s). Probably in a few other places as well.
Reply With Quote