commit 3f1228d5c6994c504f238b0c430373ad5bbedef5 from: the xhr date: Thu Sep 16 14:06:04 2021 UTC break at 80 chars commit - a1e2c7f5ba3d8417bd44729e336d7af53ecb3054 commit + 3f1228d5c6994c504f238b0c430373ad5bbedef5 blob - 481db981161f49a95c45b88f1a609ab93efabee3 blob + 07bcdc763ed9e0ebec3d89c7b0a9be9a9f5e9816 --- journey.c +++ journey.c @@ -94,12 +94,14 @@ cmd_reach_your_destination(char *cmd) ret = progress_roll(dval); if (ret == 8) { - printf("You reach your destination and the situation favors you -> Rulebook\n"); + printf("You reach your destination and the situation favors you -> "\ + "Rulebook\n"); curchar->journey_active = 0; curchar->j->progress = 0; delete_journey(curchar->id); } else if (ret == 4) { - printf("You reach your destination but face an unforseen complication -> Rulebook\n"); + printf("You reach your destination but face an unforseen complication "\ + "-> Rulebook\n"); curchar->journey_active = 0; curchar->j->progress = 0; delete_journey(curchar->id); @@ -206,8 +208,10 @@ save_journey() json_object *cobj = json_object_new_object(); json_object_object_add(cobj, "id", json_object_new_int(curchar->id)); - json_object_object_add(cobj, "difficulty", json_object_new_int(curchar->j->difficulty)); - json_object_object_add(cobj, "progress", json_object_new_double(curchar->j->progress)); + json_object_object_add(cobj, "difficulty", + json_object_new_int(curchar->j->difficulty)); + json_object_object_add(cobj, "progress", + json_object_new_double(curchar->j->progress)); snprintf(path, sizeof(path), "%s/journey.json", get_isscrolls_dir()); if ((root = json_object_from_file(path)) == NULL) {