Exemple #1
0
    public bool AddPip(PharoahDie die)
    {
        if (!die.isActiveDie())
        {
            GameState.Message("Cannot use Scarab on non-active die.");
            return(false);
        }
        int val = die.GetValue();

        if (val + 1 > die.MaxValue())
        {
            GameState.Message("Cannot AddPip beyond die's max value of " + die.MaxValue().ToString());
            return(false);
        }

        GameState.Message("Adding Pip to " + die.name);
        val++;
        if (val >= die.MaxValue())
        {
            val = die.MaxValue();
        }
        die.SetDie(val);
        isConsumed = true;
        return(true);
    }
Exemple #2
0
 public bool Reroll(PharoahDie die)
 {
     if (!die.isActiveDie())
     {
         GameState.Message("Cannot use Scarab on non-active die.");
         return false;
     }
     GameState.Message("Rerolling " + die.name);
     DiceCup.StartRolling();
     die.ReadyToRoll();
     die.RollDie();
     isConsumed = true;
     return true;
 }
Exemple #3
0
 public bool Reroll(PharoahDie die)
 {
     if (!die.isActiveDie())
     {
         GameState.Message("Cannot use Scarab on non-active die.");
         return(false);
     }
     GameState.Message("Rerolling " + die.name);
     DiceCup.StartRolling();
     die.ReadyToRoll();
     die.RollDie();
     isConsumed = true;
     return(true);
 }
Exemple #4
0
    public bool AddPip(PharoahDie die)
    {
        if (!die.isActiveDie())
        {
            GameState.Message("Cannot use Scarab on non-active die.");
            return false;
        }
        int val = die.GetValue();
        if (val+1 > die.MaxValue()) {
            GameState.Message("Cannot AddPip beyond die's max value of " + die.MaxValue().ToString());
            return false;
        }

        GameState.Message("Adding Pip to " + die.name);
        val++;
        if (val >= die.MaxValue())
            val = die.MaxValue();
        die.SetDie(val);
        isConsumed = true;
        return true;
    }