v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "23a Talk:Purring maggot"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Created page with "The following binary patch allows tame purring maggots to be milked: *0x22E93C : FF 10 83 F8 34 75 -> E9 24 02 00 00 74 *0x22EB65 : 90 90 90 90 90 90 90 90 90 90 90 -> FF 90 B...")
 
m (explain each part of the patch)
 
Line 1: Line 1:
 
The following binary patch allows tame purring maggots to be milked:
 
The following binary patch allows tame purring maggots to be milked:
*0x22E93C : FF 10 83 F8 34 75 -> E9 24 02 00 00 74
+
*0x22E93C : FF 10 83 F8 34 75 -> E9 24 02 00 00 74 (when checking cage/animaltrap contents, remove "if (item->getType() == VERMIN)" check and and jump to new code below)
*0x22EB65 : 90 90 90 90 90 90 90 90 90 90 90 -> FF 90 B0 00 00 00 E9 D1 FD FF FF
+
*0x22EB65 : 90 90 90 90 90 90 90 90 90 90 90 -> FF 90 B0 00 00 00 E9 D1 FD FF FF (add new code to check "if (item->isCritter())")
*0x35FA44 : 40 54 4B -> 50 28 5E
+
*0x35FA44 : 40 54 4B -> 50 28 5E (change "item_petst::isMilkable(...)" to point at "item_verminst::isMilkable(...)" instead of just doing "return false;")
*0xF16A1 : 18 -> 58
+
*0xF16A1 : 18 -> 58 (change "Milk Creature" job to pull from "world.items.other[CRITTER]" instead of "world.items.other[COOKABLE]")
 
--[[User:Quietust|Quietust]] ([[User talk:Quietust|talk]]) 03:29, 30 June 2021 (UTC)
 
--[[User:Quietust|Quietust]] ([[User talk:Quietust|talk]]) 03:29, 30 June 2021 (UTC)

Latest revision as of 14:33, 8 March 2022

The following binary patch allows tame purring maggots to be milked:

  • 0x22E93C : FF 10 83 F8 34 75 -> E9 24 02 00 00 74 (when checking cage/animaltrap contents, remove "if (item->getType() == VERMIN)" check and and jump to new code below)
  • 0x22EB65 : 90 90 90 90 90 90 90 90 90 90 90 -> FF 90 B0 00 00 00 E9 D1 FD FF FF (add new code to check "if (item->isCritter())")
  • 0x35FA44 : 40 54 4B -> 50 28 5E (change "item_petst::isMilkable(...)" to point at "item_verminst::isMilkable(...)" instead of just doing "return false;")
  • 0xF16A1 : 18 -> 58 (change "Milk Creature" job to pull from "world.items.other[CRITTER]" instead of "world.items.other[COOKABLE]")

--Quietust (talk) 03:29, 30 June 2021 (UTC)