Преглед на файлове

Add difficulty_class to dice.

Sam Jaffe преди 4 години
родител
ревизия
e3538e45da
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      include/dice-roll/die.h

+ 3 - 2
include/dice-roll/die.h

@@ -37,8 +37,8 @@ struct difficulty_class {
   
   bool operator()(int value) const;
   
-  test comp;
-  int against;
+  test comp{test::None};
+  int against{0};
 };
 
 // Default value: 1{+0}
@@ -46,6 +46,7 @@ struct dice {
   int num{1};
   std::vector<die> of{};
   std::vector<mod> modifier{+0};
+  difficulty_class dc{};
 };
 
 /**