@@ -444,20 +444,6 @@ public static string Collect(this FileEnumerable<(Match, string)> fe)
444444 if ( otherEnumerator . MoveNext ( ) )
445445 otherString = otherEnumerator . Current ;
446446
447- //TODO Delete (Necromancy)
448- if ( otherString == "var XP = math_round((" )
449- {
450- otherString = "var XP = math_round(" ;
451- }
452- else if ( otherString == "return 1" )
453- {
454- otherString = "return false" ;
455- }
456-
457- //TODO Delete (UI+ 2.0.0)
458- if ( otherString == " is_activate = _notEmpty" )
459- otherString = "is_activate = _notEmpty" ;
460-
461447 foreach ( string element in ienumerable )
462448 {
463449 if ( m != Match . After && otherString != null && element . Contains ( otherString ) )
@@ -471,16 +457,6 @@ public static string Collect(this FileEnumerable<(Match, string)> fe)
471457 m = Match . After ;
472458 }
473459
474- //TODO Delete (CraftableArrows)
475- if ( otherString == " select = 1" )
476- {
477- otherString = " select = true" ;
478- }
479- else if ( otherString == " global.inv_select = 1" )
480- {
481- otherString = " global.inv_select = true" ;
482- }
483-
484460 }
485461 else
486462 {
@@ -633,12 +609,6 @@ public static string Collect(this FileEnumerable<(Match, string)> fe)
633609 if ( otherUntilEnumerator . MoveNext ( ) )
634610 otherUntilString = otherUntilEnumerator . Current ;
635611
636- //TODO Delete (ArtifactKnowledge)
637- if ( otherUntilString == " _create_exit = 1" )
638- {
639- otherUntilString = " _create_exit = true" ;
640- }
641-
642612 foreach ( ( Match m , string element ) in ienumerable . MatchFrom ( otherfrom ) )
643613 {
644614 if ( m == Match . Before || m == Match . Matching )
@@ -973,141 +943,6 @@ public static IEnumerable<string> Apply(this IEnumerable<string> ienumerable, Fu
973943 /// </summary>
974944 public static FileEnumerable < string > Apply ( this FileEnumerable < string > fe , Func < IEnumerable < string > , IEnumerable < string > > iterator )
975945 {
976- //TODO Delete SpeedShard
977- #region SpeedShard
978- if ( fe . header . fileName == "gml_GlobalScript_scr_loot_chestRemoteBastion" )
979- {
980- var newEnumerable = new List < string >
981- {
982- "var _temp_local_var_2;" ,
983- "function scr_loot_chestRemoteBastion() //gml_Script_scr_loot_chestRemoteBastion" ,
984- "{" ,
985- " var lvl = 1;" ,
986- " var min_lvl = scr_globaltile_dungeon_get(\" mob_lvl_min\" );" ,
987- " var max_lvl = scr_globaltile_dungeon_get(\" mob_lvl_max\" );" ,
988- " var tier = floor(((max_lvl + min_lvl) / 2));" ,
989- " lootScriptShowData(tier);" ,
990- " var predicat = scr_loot_allweapon();" ,
991- " with (o_player)" ,
992- " lvl = (scr_atr(\" LVL\" ) + random_range(0, 4));" ,
993- " var _temp_local_var_2 = tier;" ,
994- " with (scr_inventory_add_item(o_inv_moneybag))" ,
995- " ds_map_replace(data, \" Stack\" , (300 + irandom_range(300, 600)));" ,
996- " if scr_chance_value(50)" ,
997- " scr_inventory_add_weapon(scr_find_weapon_params(15, 25, scr_loot_weapon()));" ,
998- " else if scr_chance_value(50)" ,
999- " scr_inventory_add_weapon(scr_find_weapon_params(15, 25, scr_loot_armor()));" ,
1000- " if scr_chance_value(75)" ,
1001- " scr_inventory_add_item(choose(3050, 3086));" ,
1002- " if scr_chance_value(100)" ,
1003- " {" ,
1004- " var gems = choose(3016, 3014, 3017, 3013);" ,
1005- " var precious = choose(2951, 2952, 2953);" ,
1006- " var goods = choose(2963, 2964, 2966, 2961);" ,
1007- " scr_inventory_add_item(choose(gems, precious, goods));" ,
1008- " }" ,
1009- " if scr_chance_value(50)" ,
1010- " scr_inventory_add_item(choose(3243, 4570, 340, 579, 2609), id, -4, 1, -4, 1, 1);" ,
1011- " else" ,
1012- " {" ,
1013- " with (scr_inventory_add_weapon(choose(\" Jarl Blade\" , \" Royal Sword\" , \" Relict Blade\" , \" Guard Broadsword\" , \" Decorated Saber\" , \" Ancient Scimitar\" , \" Gilded Axe\" , \" Feudal Axe\" , \" Decorated Flanged Mace\" , \" Decorated Warhammer\" , \" Ornate Greatsword\" , \" Espadon\" , \" Faceless Spear\" , \" Decorated Voulge\" , \" Ornate Longaxe\" , \" Exquisite Grandmace\" , \" Relict Polehammer\" , \" Decorated Longbow\" , \" Relic Bow\" , \" Guard Crossbow\" , \" Orient Staff\" , \" Relict Staff\" , \" Hermit Staff\" , \" Guardian Shield\" , \" Sun Shield\" , \" Uroboros Shield\" , \" Engraved Boots\" , \" Decorated Barbute\" , \" Joust Bascinet\" , \" Joust Topfhelm\" , \" Pigfaced Bascinet\" , \" Decorated Sallet\" , \" Mastercrafted Sallet\" , \" Hermit Circlet\" , \" Royal Ranger Gambeson\" , \" Ceremonial Cuirass\" , \" Vagabond Knight Armor\" , \" Joust Armor\" , \" Hermit Ring\" ), (6 << 0)))" ,
1014- " scr_inv_atr_set(\" Duration\" , irandom_range(35, 60));" ,
1015- " }" ,
1016- " scr_random_speech(\" containerRich\" );" ,
1017- "}"
1018- } ;
1019-
1020- return new FileEnumerable < string > ( fe . header , iterator ( newEnumerable ) ) ;
1021- }
1022- else if ( fe . header . fileName == "gml_GlobalScript_scr_loot_chestRemoteCrypt" )
1023- {
1024- var newEnumerable = new List < string >
1025- {
1026- "var _temp_local_var_2;" ,
1027- "function scr_loot_chestRemoteCrypt() //gml_Script_scr_loot_chestRemoteCrypt" ,
1028- "{" ,
1029- " var lvl = 1;" ,
1030- " var min_lvl = scr_globaltile_dungeon_get(\" mob_lvl_min\" );" ,
1031- " var max_lvl = scr_globaltile_dungeon_get(\" mob_lvl_max\" );" ,
1032- " var tier = floor(((max_lvl + min_lvl) / 2));" ,
1033- " lootScriptShowData(tier);" ,
1034- " var predicat = scr_loot_allweapon();" ,
1035- " with (o_player)" ,
1036- " lvl = (scr_atr(\" LVL\" ) + random_range(0, 4));" ,
1037- " var _temp_local_var_2 = tier;" ,
1038- " with (scr_inventory_add_item(o_inv_moneybag))" ,
1039- " ds_map_replace(data, \" Stack\" , (300 + irandom_range(300, 600)));" ,
1040- " if scr_chance_value(50)" ,
1041- " scr_inventory_add_weapon(scr_find_weapon_params(15, 25, scr_loot_weapon()));" ,
1042- " else if scr_chance_value(50)" ,
1043- " scr_inventory_add_weapon(scr_find_weapon_params(15, 25, scr_loot_armor()));" ,
1044- " if scr_chance_value(75)" ,
1045- " scr_inventory_add_item(choose(3050, 3086));" ,
1046- " if scr_chance_value(100)" ,
1047- " {" ,
1048- " var gems = choose(3016, 3014, 3017, 3013);" ,
1049- " var precious = choose(2951, 2952, 2953);" ,
1050- " var goods = choose(2963, 2964, 2966, 2961);" ,
1051- " scr_inventory_add_item(choose(gems, precious, goods));" ,
1052- " }" ,
1053- " if scr_chance_value(50)" ,
1054- " scr_inventory_add_item(choose(6365, 818, 1579, 104, 822, 2609), id, -4, 1, -4, 1, 1);" ,
1055- " else" ,
1056- " {" ,
1057- " with (scr_inventory_add_weapon(choose(\" Jarl Blade\" , \" Royal Sword\" , \" Relict Blade\" , \" Guard Broadsword\" , \" Decorated Saber\" , \" Ancient Scimitar\" , \" Gilded Axe\" , \" Feudal Axe\" , \" Decorated Flanged Mace\" , \" Decorated Warhammer\" , \" Ornate Greatsword\" , \" Espadon\" , \" Faceless Spear\" , \" Decorated Voulge\" , \" Ornate Longaxe\" , \" Exquisite Grandmace\" , \" Relict Polehammer\" , \" Decorated Longbow\" , \" Relic Bow\" , \" Guard Crossbow\" , \" Orient Staff\" , \" Relict Staff\" , \" Hermit Staff\" , \" Guardian Shield\" , \" Sun Shield\" , \" Uroboros Shield\" , \" Engraved Boots\" , \" Decorated Barbute\" , \" Joust Bascinet\" , \" Joust Topfhelm\" , \" Pigfaced Bascinet\" , \" Decorated Sallet\" , \" Mastercrafted Sallet\" , \" Hermit Circlet\" , \" Royal Ranger Gambeson\" , \" Ceremonial Cuirass\" , \" Vagabond Knight Armor\" , \" Joust Armor\" , \" Druid Robe\" , \" Hermit Ring\" ), (6 << 0)))" ,
1058- " scr_inv_atr_set(\" Duration\" , irandom_range(35, 60));" ,
1059- " }" ,
1060- " scr_random_speech(\" containerRich\" );" ,
1061- "}"
1062- } ;
1063-
1064- return new FileEnumerable < string > ( fe . header , iterator ( newEnumerable ) ) ;
1065- }
1066- else if ( fe . header . fileName == "gml_GlobalScript_scr_loot_chestRemoteCatacombs" )
1067- {
1068- var newEnumerable = new List < string >
1069- {
1070- "var _temp_local_var_2;" ,
1071- "function scr_loot_chestRemoteCatacombs() //gml_Script_scr_loot_chestRemoteCatacombs" ,
1072- "{" ,
1073- " var lvl = 1;" ,
1074- " var min_lvl = scr_globaltile_dungeon_get(\" mob_lvl_min\" );" ,
1075- " var max_lvl = scr_globaltile_dungeon_get(\" mob_lvl_max\" );" ,
1076- " var tier = floor(((max_lvl + min_lvl) / 2));" ,
1077- " lootScriptShowData(tier);" ,
1078- " var predicat = scr_loot_allweapon();" ,
1079- " with (o_player)" ,
1080- " lvl = (scr_atr(\" LVL\" ) + random_range(0, 4));" ,
1081- " var _temp_local_var_2 = tier;" ,
1082- " with (scr_inventory_add_item(o_inv_moneybag))" ,
1083- " ds_map_replace(data, \" Stack\" , (300 + irandom_range(300, 600)));" ,
1084- " if scr_chance_value(25)" ,
1085- " scr_inventory_add_weapon(scr_find_weapon_params(15, 25, scr_loot_weapon()));" ,
1086- " else if scr_chance_value(25)" ,
1087- " scr_inventory_add_weapon(scr_find_weapon_params(15, 25, scr_loot_armor()));" ,
1088- " if scr_chance_value(50)" ,
1089- " scr_inventory_add_item(choose(3050, 3086));" ,
1090- " if scr_chance_value(100)" ,
1091- " {" ,
1092- " var gems = choose(3016, 3014, 3017, 3013);" ,
1093- " var precious = choose(2951, 2952, 2953);" ,
1094- " var goods = choose(2963, 2964, 2966, 2961);" ,
1095- " scr_inventory_add_item(choose(gems, precious, goods));" ,
1096- " }" ,
1097- " if scr_chance_value(50)" ,
1098- " scr_inventory_add_item(choose(818, 104, 6365, 579, 2609), id, -4, 1, -4, 1, 1);" ,
1099- " else" ,
1100- " {" ,
1101- " with (scr_inventory_add_weapon(choose(\" Jarl Blade\" , \" Royal Sword\" , \" Relict Blade\" , \" Guard Broadsword\" , \" Decorated Saber\" , \" Ancient Scimitar\" , \" Gilded Axe\" , \" Feudal Axe\" , \" Decorated Flanged Mace\" , \" Decorated Warhammer\" , \" Ornate Greatsword\" , \" Espadon\" , \" Faceless Spear\" , \" Decorated Voulge\" , \" Ornate Longaxe\" , \" Exquisite Grandmace\" , \" Relict Polehammer\" , \" Decorated Longbow\" , \" Relic Bow\" , \" Guard Crossbow\" , \" Orient Staff\" , \" Relict Staff\" , \" Guardian Shield\" , \" Sun Shield\" , \" Uroboros Shield\" , \" Engraved Boots\" , \" Decorated Barbute\" , \" Joust Bascinet\" , \" Joust Topfhelm\" , \" Pigfaced Bascinet\" , \" Decorated Sallet\" , \" Mastercrafted Sallet\" , \" Royal Ranger Gambeson\" , \" Ceremonial Cuirass\" , \" Vagabond Knight Armor\" , \" Druid Robe\" , \" Hermit Ring\" ), (6 << 0)))" ,
1102- " scr_inv_atr_set(\" Duration\" , irandom_range(35, 60));" ,
1103- " }" ,
1104- " scr_random_speech(\" containerRich\" );" ,
1105- "}"
1106- } ;
1107-
1108- return new FileEnumerable < string > ( fe . header , iterator ( newEnumerable ) ) ;
1109- }
1110- #endregion
1111946 return new ( fe . header , fe . ienumerable . Apply ( iterator ) ) ;
1112947 }
1113948 /// <summary>
0 commit comments