Quests: main quest items no longer refused, restart resets bit-field variables
AddMainQuestItem refused every new main quest item once the list held an entry with script id 0 (scripts give such items); the Goldbeeren of quest 402 were picked up and lost. The script id test is patched out. Quest variables are bit fields (op 0x44 sets a bit): the quest giver restart now writes the values directly, 0 and 1 (available) for the variable named after the quest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e539cab604
commit
55e48dd302
6 files changed
+126
-20
No files matched your search
@@ -444,3 +444,7 @@
|
||||
0x007b64c0 cParticleSystem_grenadeimpact::Update # vf08 (dt), ret 4; phase +0x20a9
|
||||
0x007613e0 cParticleSystem::DrawParticles # colour table row (+0x3d) * 256 + life (+0x2c)
|
||||
0x00763ea0 cParticleSystem::UpdateParticles # thiscall (dt, emitter rows, mode), particles 0x40 bytes at +0x68
|
||||
0x005d8240 cInventoryEntry::AddMainQuestItem # thiscall (type, script id, notify): {type, script id} pairs; refused if same type (script id 0 test patched out)
|
||||
0x0049bb30 QuestManager_SetVarBit # script op 0x44: variable |= 1 << n
|
||||
0x0049c450 QuestManager_ClearVarBit # script op 0x45: variable &= ~(1 << n)
|
||||
0x0049cc20 QuestManager_AddToVar # script op 0x4b: variable += n
|
||||
Reference in new issue
Block a user