Bug - Fixed dnaSyringe property altered by Duskwalker syringe against oil monsters

Ezandora

Member
Checked in r15744.

To reproduce:

-Have non-slime phylum in DNA syringe. (example: pirate)
-get dnaSyringe -> "pirate"
-Use duskwalker syringe on any oil peak monster.
-get dnaSyringe -> "slime"
-Check campground shed again, see the syringe is still pirate.
-get dnaSyringe -> "pirate"

This can be reproduced without the lab itself.

This may be due to FightRequest.java:
Code:
if ( responseText.contains( "plunge the syringe" ) )

Which is meant to match the DNA extraction syringe's message, but also matches the duskwalker syringe's message, which is:
Code:
You plunge the syringe into it and pull out a big glob of oil.

Should change to something like:
Code:
if ( responseText.contains( "plunge the syringe" ) && responseText.contains( "extract a sample of" ) )
 

Darzil

Developer
We should probably just move the test to FightRequest.payItemCost() as it needs the item to be used in order to get the response.
 
Top