removed my "debugger"

This commit is contained in:
FinnHornhoover 2021-03-31 20:09:54 -07:00 committed by Gent Semaj
parent 6f636b77f2
commit 80b11b4364

View File

@ -566,26 +566,18 @@ static void chestOpenHandler(CNSocket *sock, CNPacketData *data) {
int validCrateId = getValidCrateId(chest->iID); int validCrateId = getValidCrateId(chest->iID);
bool failing = (validCrateId == -1); bool failing = (validCrateId == -1);
std::cout << "validCrateId " << validCrateId << std::endl;
if (!failing) if (!failing)
validItemSetId = getValidItemSetId(validCrateId); validItemSetId = getValidItemSetId(validCrateId);
failing = (validItemSetId == -1); failing = (validItemSetId == -1);
std::cout << "validItemSetId " << validItemSetId << std::endl;
if (!failing) if (!failing)
rarity = getRarity(validCrateId, validItemSetId); rarity = getRarity(validCrateId, validItemSetId);
failing = (rarity == -1); failing = (rarity == -1);
std::cout << "rarity " << rarity << std::endl;
if (!failing) if (!failing)
ret = getCrateItem(&item->sItem, validItemSetId, rarity, plr->PCStyle.iGender); ret = getCrateItem(&item->sItem, validItemSetId, rarity, plr->PCStyle.iGender);
failing = (ret == -1); failing = (ret == -1);
std::cout << "ret " << ret << std::endl;
// if we failed to open a crate, at least give the player a gumball (suggested by Jade) // if we failed to open a crate, at least give the player a gumball (suggested by Jade)
if (failing) { if (failing) {
item->sItem.iType = 7; item->sItem.iType = 7;