Fix opening C.R.A.T.E.S. resetting your boost counters

This commit is contained in:
Gent S 2020-11-17 13:48:20 -05:00
parent eaeeae8d62
commit 12baece1b2

View File

@ -832,6 +832,8 @@ void ItemManager::chestOpenHandler(CNSocket *sock, CNPacketData *data) {
reward->iFatigue = 100; // prevents warning message reward->iFatigue = 100; // prevents warning message
reward->iFatigue_Level = 1; reward->iFatigue_Level = 1;
reward->iItemCnt = 1; // remember to update resplen if you change this reward->iItemCnt = 1; // remember to update resplen if you change this
reward->m_iBatteryN = plr->batteryN;
reward->m_iBatteryW = plr->batteryW;
item->iSlotNum = chest->iSlotNum; item->iSlotNum = chest->iSlotNum;
item->eIL = chest->eIL; item->eIL = chest->eIL;