Esempio n. 1
0
                 $diff_array = $diff > 0 ? [null, $discipline->ranks()->get()[$i]->name . " (" . $discipline->name . " " . ($i + 1) . ")"] : [$discipline->ranks()->get()[$i]->name . " (" . $discipline->name . " " . ($i + 1) . ")", null];
                 print_change("", $diff_array, ["Purchased .", "[change]", "Removed ."]);
             }
         }
     }
 }
 if ($key == "elderPowers" && sizeof($value) > 0) {
     echo "<h5>Elder Powers</h5>";
     foreach ($value as $k => $v) {
         print_change("", $v["character_id"][0] == null ? [null, RulebookElderPower::find($k)->name] : [RulebookElderPower::find($k)->name, null], ["Purchased .", "[change]", "Removed ."]);
     }
 }
 if ($key == "comboDisciplines" && sizeof($value) > 0) {
     echo "<h5>Combo Disciplines</h5>";
     foreach ($value as $k => $v) {
         print_change("", $v["character_id"][0] == null ? [RulebookComboDiscipline::find($k)->name, null] : [null, RulebookComboDiscipline::find($k)->name], ["Purchased .", "[change]", "Removed ."]);
     }
 }
 if ($key == "path") {
     echo "<h5>Path</h5>";
     $path = $character->path($character->latestVersion()->version)->first();
     if ($path) {
         $path = $path->definition;
         print_change("", @$value["path_id"], ["Began on .", "Changed from  -> .", "Removed path (Is this a mistake?)."], function ($val) {
             return RulebookPath::find($val)->name;
         });
         print_change("", @$value["virtue1"], ["Began with  Dots of " . $path->stats()[0] . ".", "[change] Dots of " . $path->stats()[0] . " from  -> .", "Removed all Dots of " . $path->stats()[0] . "."]);
         print_change("", @$value["virtue2"], ["Began with  Dots of " . $path->stats()[1] . ".", "[change] Dots of " . $path->stats()[1] . " from  -> .", "Removed all Dots of " . $path->stats()[1] . "."]);
         print_change("", @$value["virtue3"], ["Began with  Dots of " . $path->stats()[2] . ".", "[change] Dots of " . $path->stats()[2] . " from  -> .", "Removed all Dots of " . $path->stats()[2] . "."]);
         print_change("", @$value["virtue4"], ["Began with  Dots of " . $path->stats()[3] . ".", "[change] Dots of " . $path->stats()[3] . " from  -> .", "Removed all Dots of " . $path->stats()[3] . "."]);
     }