1package com.osroyale.content.gambling.impl;
3import com.osroyale.content.gambling.Gamble;
4import com.osroyale.game.task.Task;
5import com.osroyale.game.world.World;
6import com.osroyale.game.world.entity.mob.player.Player;
7import com.osroyale.util.Utility;
31public class FiftyFive
extends Gamble {
34 super(host, opponent);
38 public String toString() {
43 public void gamble() {
46 public int randomRoll = 1 +
Utility.random(99);
50 protected void execute() {
53 getHost().speak(
"I rolled " + randomRoll +
" on the dice.");
54 getOpponent().speak(
"The host rolled " + randomRoll +
" on the dice.");
57 if (randomRoll > 55) {
60 }
else if (randomRoll < 55) {
67 getHost().getGambling().finish(getHost(), getOpponent(),
hostScore, opponentScore);
static void schedule(Task task)