public void PositiveOrNegativeInteraction() { goodInteraction = false; int numberForPositiveInteraction = NumberNeededForPositiveInteraction(); int diceRoll = DiceRoll(); if (diceRoll <= numberForPositiveInteraction) { goodInteraction = true; } int diceDifference = Math.Abs(diceRoll - numberForPositiveInteraction); if (goodInteraction) { relationshipNumber += diceDifference; } else { relationshipNumber -= diceDifference; } if (relationshipNumber < 0) { relationshipNumber = 0; } relationshipDescription = DescribeRelationship(relationshipNumber); }
public RelationshipWithPlayer(Player client, Player t, Random r) { rnd = r; Client = client; Teammate = t; relationshipNumber = 50; relationshipDescription = DescribeRelationship(relationshipNumber); }