Files
praxisandClaude Fable 5.2 45ecd73fe0 Evidence records
1888 files, from working commit b1a079a.

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

46 lines
3.1 KiB
Diff

--- a/native/world_translation.cpp
+++ b/native/world_translation.cpp
@@ -388,7 +388,7 @@
if(amount>255)throw Error("sell quantity outside Turtle byte-count protocol");
Bytes out;le(out,vendor,8);le(out,item,8);le(out,amount,1);return {0x1a0,std::move(out)};
}
- if(opcode==0x410007 || opcode==0x410004 || opcode==0x410008 || opcode==0x410006)return inventory.gameplay(opcode,body);
+ if(opcode==0x410007 || opcode==0x410004 || opcode==0x410008 || opcode==0x410006 || opcode==0x3f0105)return inventory.gameplay(opcode,body);
Reader r(body);auto known=bindings();
if(opcode==0x3e011f){r.end();return {0x142,{}};}
if(opcode==0x3f002b){
--- a/ops/build_forever_create.py
+++ b/ops/build_forever_create.py
@@ -129,7 +129,7 @@
active_start=text.index('static uint32 ClassicActivePlayerDataBit(')
active_end=text.index('void ActivePlayerData::WriteUpdate(Mask const&',active_start)
active_helpers=text[active_start:active_end]
- allowed_active={32,58,60,61,63,64,70,72,73,75,77,78,79,101,102,124,132,133,134,147,148,163,311}
+ allowed_active={32,58,60,61,63,64,70,72,73,75,77,78,79,101,102,107,124,132,133,134,147,148,163,311}
for kind in ('ActivePlayerData','TraitConfig','SkillInfo'):
needle='void '+kind+'::WriteUpdate('+('Mask const&' if kind=='ActivePlayerData' else 'bool ignoreChangesMask')
start=text.index(needle);brace=text.index('{',start);depth=1;end=brace+1
--- a/src/forever_create.cpp
+++ b/src/forever_create.cpp
@@ -451,6 +451,12 @@
if(id!=self || kind!=0)throw Error("inventory player identity");
UF::ActivePlayerData active;UF::ActivePlayerData::Mask am;UF::PlayerData player;UF::PlayerData::Mask pm;UF::UnitData unit;UF::UnitData::Mask um;
bool have_active=false,have_player=false,have_unit=false;
+ if(f.contains(Turtle::PLAYER_AMMO_ID)){
+ // Classic70334 repurposes PvpMedals as AmmoID. Apply
+ // only actual source updates, including explicit zero.
+ const_cast<uint32&>(*active.PvpMedals)=value(Turtle::PLAYER_AMMO_ID);
+ am.Set(102);am.Set(107);have_active=true;
+ }
auto slot=[&](unsigned legacy,unsigned modern){
if(!f.contains(legacy) && !f.contains(legacy+1))return;
const_cast<ObjectGuid&>(active.InvSlots[modern])=item_guid(pair(legacy));am.Set(163);am.Set(164+modern);have_active=true;
@@ -1167,6 +1173,7 @@
append_item(bank,242709,1,0,0,nullptr,&bank_data);
const_cast<ObjectGuid&>(active.InvSlots[63])=bank;set(active.NumCharacterBankTabs,uint8_t(1));
auto purchased_bank_bags=(value(Turtle::PLAYER_BYTES_2)>>16)&255;
+ set(active.PvpMedals,value(Turtle::PLAYER_AMMO_ID));
if(purchased_bank_bags>6)throw Error("unsupported source purchased bank bag count");
set(active.NumBankSlots,uint8_t(purchased_bank_bags));
// Original Camelot BankFrame enumerates purchased tab settings, not