Cryostasis.asl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. state("cryostasis")
  2. {
  3. string60 mapName : 0x17B24B3;
  4. bool isLoading : 0x1B80715;
  5. }
  6. init
  7. {
  8. vars.doneMaps = new List<string>();
  9. }
  10. startup
  11. {
  12. settings.Add("Levels", true, "All Levels");
  13. vars.missions2 = new Dictionary<string,string>
  14. {
  15. {"bios20.map","Dream"},
  16. {"bios31.map","Forest"},
  17. {"bios32.map","Swamp"},
  18. {"bios41","Storm"},
  19. {"bios41a","Glacier"},
  20. {"bios42","Ties"},
  21. {"bios43","Darkness"},
  22. {"bios51","Heart"},
  23. {"bios51a","Stress"},
  24. {"bios52","Cold"},
  25. {"bios60","Fear"},
  26. {"bios71","Escape"},
  27. {"bios72","Beats"},
  28. {"bios81","Poison"},
  29. {"bios82","Choice"},
  30. {"bios83","Heat"},
  31. {"bios90","Chronos"},
  32. {"bios91","Light"},
  33. };
  34. foreach (var Tag in vars.missions2)
  35. {
  36. settings.Add(Tag.Key, true, Tag.Value, "Levels");
  37. };
  38. }
  39. start
  40. {
  41. return ((settings[current.mapName]) && (current.isLoading != old.isLoading));
  42. }
  43. onReset
  44. {
  45. vars.doneMaps.Clear();
  46. }
  47. split
  48. {
  49. if ((settings[current.mapName]) && (current.mapName != old.mapName) && (!vars.doneMaps.Contains(current.mapName)))
  50. {
  51. vars.doneMaps.Add(current.mapName);
  52. return true;
  53. }
  54. }
  55. isLoading
  56. {
  57. return current.isLoading;
  58. }