Files
praxisandClaude Fable 5.2 c2194c59d4 Protocol core: packet translation between source and native
127 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:47 +02:00

20 lines
2.2 KiB
C++

// Generated by ops/item_render_profile.py from the reviewed Source rule/catalogue.
// Source display identities only; no inventory objects, selectors or stats change.
#pragma once
#include <algorithm>
#include <cstdint>
#include <iterator>
namespace gateway::race_slot_hide_profile {
inline constexpr uint32_t Displays[]={2083,3261,3757,4016,4835,7578,9098,9813,16368,16553,16576,16659,16780,16798,16820,16821,16822,16854,16855,17138,28088,30430,34055,34634,66299,66442,66730,66738,67806,67858,67859,67862,67863,67864,67865,67866,67867,67868,67869,67870,67871,67872,67873,67994,67995,67996,67997,68157,68175,68291,68336,68337,68338,68340,68341};
struct ItemDisplay {uint32_t item,display;};
inline constexpr ItemDisplay Items[]={{59,3261},{80,16854},{202,16780},{792,16855},{840,16821},{1374,16659},{1427,16798},{1495,16553},{1764,7578},{1772,3757},{1780,16820},{2117,16576},{2301,2083},{3321,4016},{4137,4835},{4139,16822},{4321,17138},{6836,16368},{9876,28088},{11508,67806},{16691,30430},{16919,34055},{22084,34634},{33015,66738},{33234,16822},{41099,67994},{41100,67995},{41101,67996},{41102,67997},{41488,68337},{41492,68336},{41508,68340},{41512,9813},{41543,68338},{41546,68341},{41899,16855},{42374,16855},{47184,68175},{47190,68175},{47196,68175},{47213,66730},{47310,68157},{47316,68157},{50032,16855},{50047,28088},{50503,9098},{50517,9098},{51817,16854},{51885,16576},{55280,68175},{55576,68291},{60718,16822},{60863,16798},{60988,66299},{61211,16822},{61281,66442},{65028,16820},{69152,67858},{69153,67859},{69154,67862},{69155,67863},{69156,67864},{69157,67865},{69158,67866},{69159,67867},{69160,67868},{69161,67869},{69162,67870},{69163,67871},{69164,67872},{69165,67873},{70664,66730},{80123,4016},{83266,16855},{83288,3757},{1943561,3757},{1980518,67862},{1981142,16820},{1983411,16820}};
inline constexpr uint32_t source_display(uint32_t item) noexcept {
auto p=std::lower_bound(std::begin(Items),std::end(Items),item,[](const auto& r,uint32_t id){return r.item<id;});
return p!=std::end(Items)&&p->item==item?p->display:0;
}
inline constexpr bool hidden(uint8_t race,uint8_t gender,unsigned slot,uint32_t display) noexcept {
return race==6 && gender<=1 && slot==7 &&
std::binary_search(std::begin(Displays),std::end(Displays),display);
}
}