Here is a patch that implements the handling of portable photocopiers and photocopied monsters. I mostly copied the code I found for the 4D-Camera, and tested the changes as much as I could.
One specificity of the portable photocopier is that it is useable from the inventory, creating a photocopied monster containing the "Your butt" monster (it is consumed on use). This part was tested.
Two new preferences were added: _photocopyUsed and photocopyMonster. I also added the "Your butt" and "someone else's butt" monsters.
Ideally, for photocopied monster obtained from a fax machine, KoLMafia could extract the name of the photocopied monster from the item description, but apparently it doesn't contain the full name of the monster, so some sort of fyzzy matching should be worked out. This part isn't done at all.
There is no support whatsoever for the Fax Machine though (see this feature request for implementation of Fax Machine support).
One specificity of the portable photocopier is that it is useable from the inventory, creating a photocopied monster containing the "Your butt" monster (it is consumed on use). This part was tested.
Two new preferences were added: _photocopyUsed and photocopyMonster. I also added the "Your butt" and "someone else's butt" monsters.
Ideally, for photocopied monster obtained from a fax machine, KoLMafia could extract the name of the photocopied monster from the item description, but apparently it doesn't contain the full name of the monster, so some sort of fyzzy matching should be worked out. This part isn't done at all.
There is no support whatsoever for the Fax Machine though (see this feature request for implementation of Fax Machine support).
Attachments
Last edited: