Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setNbrThrown : function(value){
- this.nbrThrown = value;
- // We choose which smiley we want to add at the end of the sentence
- if(this.nbrThrown <= 10) smiley = ".";
- else if(this.nbrThrown <= 20) smiley = "...";
- else if(this.nbrThrown <= 30) smiley = "...?";
- else if(this.nbrThrown <= 40) smiley = "...? <tt>:|</tt>";
- else if(this.nbrThrown <= 50) smiley = "...? <tt>:/</tt>";
- else if(this.nbrThrown <= 60) smiley = "...? <tt>:(</tt>";
- else if(this.nbrThrown <= 70) smiley = "...? <tt>:[</tt>";
- else if(this.nbrThrown <= 80) smiley = "...? <tt>:{</tt>";
- else if(this.nbrThrown <= 90) smiley = "...? <tt>:'(</tt>";
- else smiley = "...? <tt>(;_;)</tt>";
- if(this.nbrThrown != 1) htmlInteraction.setInnerHtml("candies_thrown", "You threw " + this.nbrThrown + " candies on the ground" + smiley);
- else htmlInteraction.setInnerHtml("candies_thrown", "You threw 1 candy on the ground" + smiley);
- htmlInteraction.setElementVisibility("candies_thrown", true);
- },
- bug2: function() {
- var rndrnd;
- if (lollipops.nbrOwned >= 10000000) {
- lollipops.setNbrOwned(lollipops.nbrOwned - 10000000);
- switch (random.getRandomIntUpTo(2)) {
- case 0:
- candies.setNbrOwned(candies.nbrOwned + candies.nbrThrown);
- htmlInteraction.setInnerHtml("computer_comment_2", "You picked up all candies you have thrown on the floor. (" + candies.nbrThrown + ")");
- candies.setNbrThrown(0);
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement