public Character(I3W6 attributWürfel, IW100 berufWürfel, IW30 zeichenWürfel, IW4 trefferpunkteWürfel, I5W12 geldWürfel, IW24 handelsWarenWürfel) { Attribute = new Attribute(attributWürfel); Beruf = Beruf.Random(berufWürfel); Geburtszeichen = Geburtszeichen.Random(zeichenWürfel, Attribute.Glück.Modifikator); Trefferpunkte = Math.Max(trefferpunkteWürfel.Würfeln() + Attribute.Ausdauer.Modifikator, 1); Startkapital = $"{geldWürfel.Würfeln()} KM"; Ausrüstung = Ausrüstung.Random(handelsWarenWürfel); }
public static Ausrüstung Random(IW24 würfel) { return(Handelswaren.Value[würfel.Würfeln()]); }