public override void EffectOnPlayer(Player_Class_Library.Player who) { base.EffectOnPlayer(who); // apply effects who.Deduct(DEDUCT_AMOUNT); who.OffsetDistance(DISTANCE_OFFSET); }
public override void EffectOnPlayer(Player_Class_Library.Player who) { base.EffectOnPlayer(who); // apply effects who.Add(ADD_AMOUNT); // re-roll dice who.ReRollDice(); }
/// <summary> /// Effect on player, rolls modified die and calls only player methods /// </summary> /// <param name="who">player</param> public override void EffectOnPlayer(Player_Class_Library.Player who) { base.EffectOnPlayer(who); // roll dice chanceDie.Roll(); // if value is one then add else deduct if (chanceDie.FaceValue == 1) { // apply position offset who.Add(ADD_DEDUCT_AMOUNT); who.OffsetDistance(WIN_DISTANCE_OFFSET); } else { // apply position offset who.Deduct(ADD_DEDUCT_AMOUNT); who.OffsetDistance(LOSE_DISTANCE_OFFSET); } }