MP
Member
Posts: 150
|
Post by MP on Aug 9, 2019 5:54:17 GMT
If you're using Alpha10 as your code base you may run into an exception caused by ItemTracker items not being catered for in BaseAI.RateItemExhange()
It's not something that comes up much, as I hadn't come across it until now.
Personally, I also set Release mode to just reject the trade rather than throw an exception. Bot mode makes it easy to catch these in Debug anyway
if (oIt is ItemTracker) return TradeRating.REFUSE;
#if !DEBUG return TradeRating.REFUSE; //fall thru. better to skip over rather than crash the game on players #endif
|
|