2
0

savegameNames.js 725 B

123456789101112131415161718192021
  1. Config.passages.descriptions = function () {
  2. try{
  3. let result = "";
  4. if(State.variables.QSPVAR_s_$pcs_nickname)
  5. result = State.variables.QSPVAR_s_$pcs_nickname[0];
  6. if(State.variables.QSPVAR_n_daystart && State.variables.QSPVAR_n_daystart_start){
  7. const currentDay = State.variables.QSPVAR_n_daystart[0] - State.variables.QSPVAR_n_daystart_start[0] + 1;
  8. result += ` Day ${currentDay}`;
  9. }
  10. if(result)
  11. return result;
  12. }
  13. catch(e){
  14. //Not so bad. No need to throw an error to anywhere important.
  15. console.warn(e);
  16. }
  17. return "New Game";
  18. };