BastianKanaan / GMscripts_MyFreeFarm

GMscripts MyFreeFarm
GNU General Public License v3.0
16 stars 31 forks source link

Handling donkey behavior, when using more than one computers to play #31

Closed MoeLa closed 9 years ago

MoeLa commented 9 years ago

I use several computers to play MFF. When logging in to an account and clicking the donkey, the gained XP and products are correctly put in the "donkey info panel" and the GoToDonkey-Icon vanishes. But if I later login to that account from another computer (where the logDonkey variable isn't filled with an entry for today), clicking the donkey only displays the error message "you have already visited the donkey today". This patch writes a dummy entry (zero points, no products) into logDonkey in the latter case and hides the GoToDonkey-Icon. Thus, the disturbing flashing GoToDonkey-Icon is disabled for today.

Further the behavior for clicking the donkey without having it already purchased has been changed: The user is now shown the "purchase donkey dialog" instead of an empty "donkey info panel", which makes more sense in my opinion.