MantisBT - VCMI
View Issue Details
0000268VCMIMechanics - Objectspublic2009-12-01 08:542009-12-30 07:02
Steven Aus 
Warmonger 
normalminoralways
closedfixed 
0.74c 
0.75 
0000268: Objects such as Lean To, Wagon, Skeleton etc. use the "freebie here" response with no display when there is no freebie this time
I think that when the Lean To, Wagon and Skeleton don't give out a result, they say on first visit they have a result but don't show anything (and when "visiting" a Skeleton in my current game nothing was given even though the dialog was the one where there was a freebie). If they don't have anything to give they need to give the dialog that there isn't a freebie on the object.

When I just tested then, a freebie of 3 Mercury was given from a Lean To, so it seems that the "freebie" response (with no further graphical display or actual bonus) is in the dialog even when the game has randomly generated an empty Lean To, Wagon, Skeleton or similar object.

The second and subsequent visit of a Lean To or similar "freebie or not"-type object gives the correct response, so that dialog needs to be used first time when there is no freebie for one of these object types. If there is a freebie it uses the response and graphical display it does now.
No tags attached.
7z LeanToTestGames.7z (156,339) 2009-12-01 10:26
https://bugs.vcmi.eu/file_download.php?file_id=126&type=bug
Issue History
2009-12-01 08:54Steven AusNew Issue
2009-12-01 09:28WarmongerAssigned ToTow => Warmonger
2009-12-01 10:11WarmongerNote Added: 0000334
2009-12-01 10:25Steven AusNote Added: 0000336
2009-12-01 10:26Steven AusFile Added: LeanToTestGames.7z
2009-12-01 10:55WarmongerNote Added: 0000337
2009-12-01 10:56WarmongerStatusassigned => resolved
2009-12-01 10:56WarmongerFixed in Version => SVN
2009-12-01 10:56WarmongerResolutionopen => fixed
2009-12-01 11:40WarmongerNote Added: 0000339
2009-12-01 11:40WarmongerStatusresolved => feedback
2009-12-01 11:40WarmongerResolutionfixed => reopened
2009-12-01 11:40WarmongerStatusfeedback => resolved
2009-12-01 11:40WarmongerResolutionreopened => fixed
2009-12-01 11:55ZamolxisNote Added: 0000340
2009-12-30 07:02ZamolxisNote Added: 0000526
2009-12-30 07:02ZamolxisStatusresolved => closed

Notes
(0000334)
Warmonger   
2009-12-01 10:11   
What I managed to reproduce:

-Lean-To always gives resource (never is empty)
-Wagon works ok
-Corpse gives wrong message from Marletto Tower and does not add info about found artifact (fixed in revision 1376).

So here it works quite fine.
(0000336)
Steven Aus   
2009-12-01 10:25   
I think there might still be a bug - two games I played didn't seem to give any resources for Lean Tos, although it did say there were some resources (two Tale of Two Lands saves attached).
(0000337)
Warmonger   
2009-12-01 10:55   
None of these is reproductible. I may have fixed it in 0000241, as the code is simple and had a minor bug. Or it is something very strange.

Marked as fixed, please reopen if bug returns.
(0000339)
Warmonger   
2009-12-01 11:40   
I figured it out, once again serialization was missing so objects did not save properly.
(0000340)
Zamolxis   
2009-12-01 11:55   
Hehe... I think serialization should be the first thing that comes to mind when a bug cannot be reproduced from now on. :)
(0000526)
Zamolxis   
2009-12-30 07:02   
Seems to be fixed in 0.75. Please reopen if otherwise.