Feature - Implemented [patch] Track fancy chocolate scuplture phenomenon and warn if you're going to waste

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
Another patch from me!

The wiki page explains it all really. It's probably not worth tracking over 3 but on the other hand why not.
 

Attachments

  • fancy-chocolate-sculptures.patch
    2.6 KB · Views: 24

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
Thanks for merging. Sadly I noticed a tiny typo

Code:
				int sculptures = Preferences.getInteger( "_chocolateSculpturesUsed" );
				Preferences.setInteger( "_chocolateSculpturesUsed", Math.max(sculptures, 4) );

should be


Code:
				int sculptures = Preferences.getInteger( "_chocolateSculpturesUsed" );
				Preferences.setInteger( "_chocolateSculpturesUsed", Math.max(sculptures + 1, 4) );

the feature should work fine without it of course but with this typo it might as well be

Code:
				Preferences.setInteger( "_chocolateSculpturesUsed", 4 );
 
Top