Skip to content

Commit 3aec957

Browse files
committed
version 0.1.23
Added: * Support for items in the new Better Save Soul DLC (considering Autocomplete and icons)
1 parent 7561114 commit 3aec957

12 files changed

Lines changed: 1219 additions & 715 deletions

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
0.1.23
2+
=====
3+
4+
Added:
5+
6+
* Support for items in the new Better Save Soul DLC (considering Autocomplete and icons)
7+
18
0.1.22
29
=====
310

data/html/css/items.css

Lines changed: 754 additions & 703 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/html/index.html

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,14 @@
9393

9494
let disable_context_menu = true;
9595

96-
const strangersins_item_range = [726, 794]
97-
const gameofcrone_item_range = [795, 908]
96+
const strangersins_item_range = [820, 888]
97+
const gameofcrone_item_range = [889, 1002]
98+
const bettersavesoul_item_range = [1003, 1052]
9899

99100
const displayed_infos_dlc = {
100101
"gameofcrone": false,
101-
"strangersins": false
102+
"strangersins": false,
103+
"bettersavesoul": false,
102104
}
103105

104106
// Contextmenu is not needed, for that reason it is disabled
@@ -162,6 +164,10 @@
162164
if (i >= gameofcrone_item_range[0] && i <= gameofcrone_item_range[1] && !settings["gameofcrone"]){
163165
return
164166
}
167+
// Don't include better save soul items
168+
if (i >= bettersavesoul_item_range[0] && i <= bettersavesoul_item_range[1] && !settings["bettersavesoul"]){
169+
return
170+
}
165171
autocompletenames[(data["locals"][item] || data["locals"][item.replace(/:\d$/g, "")]) + " (" + item + ")"] = null
166172
})
167173

@@ -281,7 +287,7 @@
281287
<div class="btn perdeco col s12">Set all grave decorations to the highest</div>
282288
<div class="btn perempty col s12">Replace all empty graves with perfect graves</div>
283289
<div class="btn pertech col s12">Unlock the entire tech tree</div>
284-
<div class="note hover col s12"><b>Note:</b><br>This is pre version 1.200</div>
290+
<div class="note col s12"><b>Note:</b><br>This is pre version 1.200</div>
285291
<div class="btn repairdonkey col s12">Replace your current donkey NPC</div>
286292
<div class="note hover col s12"><b>WARNING:</b><br>This replaces your current donkey object with the a working one from my savefile. It will then be in front of your morgue. <b>Don't be surprised if it doesn't drop the body even if you have enough carrots. Through replacing the donkey this check gets skipped.</b> Just put 10 more in and the donkey should work - I tried it on a save in the bug report channel of the discord (from Lazy Bear Games). ONLY USE THIS IF THE BUG FIX OF THE DEVELOPERS DIDN'T WORK AND YOU ALREADY HAVE THE BOX WITH CARROTS. <b>Also only use this if your donkey is actually stuck!</b></div>
287293
<div class="btn resetmorgue col s12">Reset Morgue Counter</div>
@@ -569,6 +575,27 @@
569575
}
570576
}
571577

578+
if(index >= bettersavesoul_item_range[0] && index <= bettersavesoul_item_range[1] && !settings["bettersavesoul"]){
579+
if(!displayed_infos_dlc["bettersavesoul"]){
580+
displayed_infos_dlc["bettersavesoul"] = true;
581+
582+
// Display an info considering the DLC
583+
let m = M.toast({html: `<div><p>It seems like the save contains items from the Better Save Soul DLC but you didn't enable it in the settings.</div><div class="confirm">Click here to enable Better Save Soul support</div>`, displayLength: 60000})
584+
$(m.el).find(".confirm").click(async function() {
585+
m.dismiss();
586+
587+
// Save the settings
588+
settings["bettersavesoul"] = true;
589+
await eel.set_settings(settings)();
590+
591+
// Add the autocomplete names
592+
for(let i = bettersavesoul_item_range[0]; i < bettersavesoul_item_range[1]; i++) {
593+
autocompletenames[(data["locals"][gamedata.items[i]] || data["locals"][gamedata.items[i].replace(/:\d$/g, "")]) + " (" + gamedata.items[i] + ")"] = null
594+
}
595+
})
596+
}
597+
}
598+
572599
if (data["locals"].hasOwnProperty(id)) {
573600
return data["locals"][id];
574601
} else if (/:\d$/.test(id)) {

data/html/items.json

Lines changed: 147 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@
4747
"beet_seed",
4848
"black_paint",
4949
"blood",
50+
"blood:blood_2_-1",
51+
"blood:blood_3_-1",
52+
"blood:blood_1_0",
53+
"blood:blood_1_1",
54+
"blood:blood_1_2",
55+
"blood:blood_1_3",
56+
"blood:blood_2_0",
57+
"blood:blood_2_1",
58+
"blood:blood_2_2",
59+
"blood:blood_2_3",
60+
"blood:blood_3_0",
61+
"blood:blood_3_1",
62+
"blood:blood_3_2",
63+
"blood:blood_3_3",
64+
"blood:blood_mod",
5065
"bone",
5166
"book_ruined_1",
5267
"bottle_apple_braga",
@@ -55,7 +70,6 @@
5570
"bottle_red_vine:2",
5671
"bottle_red_vine:3",
5772
"brain_dark",
58-
"brain:brain_3_3",
5973
"bs_letter",
6074
"bust_marble",
6175
"butter",
@@ -155,6 +169,21 @@
155169
"faceted_emerald",
156170
"faith",
157171
"fat",
172+
"fat:fat_2_-1",
173+
"fat:fat_3_-1",
174+
"fat:fat_1_0",
175+
"fat:fat_1_1",
176+
"fat:fat_1_2",
177+
"fat:fat_1_3",
178+
"fat:fat_2_0",
179+
"fat:fat_2_1",
180+
"fat:fat_2_2",
181+
"fat:fat_2_3",
182+
"fat:fat_3_0",
183+
"fat:fat_3_1",
184+
"fat:fat_3_2",
185+
"fat:fat_3_3",
186+
"fat:fat_mod",
158187
"fillet_fish:fillet_fish_blue:1",
159188
"fillet_fish:fillet_fish_blue:2",
160189
"fillet_fish:fillet_fish_blue:3",
@@ -176,6 +205,18 @@
176205
"flask_green_l_plus",
177206
"flavor_enhancer",
178207
"flesh",
208+
"flesh:flesh_0_2",
209+
"flesh:flesh_0_3",
210+
"flesh:flesh_1_1",
211+
"flesh:flesh_1_2",
212+
"flesh:flesh_1_3",
213+
"flesh:flesh_2_1",
214+
"flesh:flesh_2_2",
215+
"flesh:flesh_2_3",
216+
"flesh:flesh_3_1",
217+
"flesh:flesh_3_2",
218+
"flesh:flesh_3_3",
219+
"flesh:flesh_mod",
179220
"flitch",
180221
"flour",
181222
"flw_chamomile",
@@ -225,7 +266,6 @@
225266
"hammer_2",
226267
"hearthstone",
227268
"heart_dark",
228-
"heart:heart_3_3",
229269
"hiccup_grass",
230270
"honey",
231271
"hop_crop:1",
@@ -388,6 +428,21 @@
388428
"silk",
389429
"skin_pig",
390430
"skin",
431+
"skin:skin_-1_2",
432+
"skin:skin_-1_3",
433+
"skin:skin_0_1",
434+
"skin:skin_0_2",
435+
"skin:skin_0_3",
436+
"skin:skin_1_1",
437+
"skin:skin_1_2",
438+
"skin:skin_1_3",
439+
"skin:skin_2_1",
440+
"skin:skin_2_2",
441+
"skin:skin_2_3",
442+
"skin:skin_3_1",
443+
"skin:skin_3_2",
444+
"skin:skin_3_3",
445+
"skin:skin_mod",
391446
"skroll_skin_pig",
392447
"skull",
393448
"slime",
@@ -675,6 +730,19 @@
675730
"brain:brain_2_2",
676731
"brain:brain_-2_3",
677732
"brain:brain_4_1",
733+
"brain:brain_3_3",
734+
"brain:brain_0_3",
735+
"brain:brain_1_0",
736+
"brain:brain_1_2",
737+
"brain:brain_1_3",
738+
"brain:brain_2_3",
739+
"brain:brain_3_0",
740+
"brain:brain_3_1",
741+
"brain:brain_3_2",
742+
"brain:brain_3_-1",
743+
"brain:brain_-1_3",
744+
"brain:brain_4_2",
745+
"brain:brain_4_3",
678746
"heart:heart_0_0",
679747
"heart:heart_1_1",
680748
"heart:heart_2_-1",
@@ -685,6 +753,19 @@
685753
"heart:heart_2_2",
686754
"heart:heart_-2_3",
687755
"heart:heart_4_1",
756+
"heart:heart_3_3",
757+
"heart:heart_0_3",
758+
"heart:heart_1_0",
759+
"heart:heart_1_2",
760+
"heart:heart_1_3",
761+
"heart:heart_2_3",
762+
"heart:heart_3_0",
763+
"heart:heart_3_1",
764+
"heart:heart_3_2",
765+
"heart:heart_3_-1",
766+
"heart:heart_-1_3",
767+
"heart:heart_4_2",
768+
"heart:heart_4_3",
688769
"intestine:intestine_0_0",
689770
"intestine:intestine_1_1",
690771
"intestine:intestine_2_-1",
@@ -695,6 +776,19 @@
695776
"intestine:intestine_2_2",
696777
"intestine:intestine_-2_3",
697778
"intestine:intestine_4_1",
779+
"intestine:intestine_3_3",
780+
"intestine:intestine_0_3",
781+
"intestine:intestine_1_0",
782+
"intestine:intestine_1_2",
783+
"intestine:intestine_1_3",
784+
"intestine:intestine_2_3",
785+
"intestine:intestine_3_0",
786+
"intestine:intestine_3_1",
787+
"intestine:intestine_3_2",
788+
"intestine:intestine_3_-1",
789+
"intestine:intestine_-1_3",
790+
"intestine:intestine_4_2",
791+
"intestine:intestine_4_3",
698792
"organs:organs_1",
699793
"surgeon_mistake",
700794
"lungs:lungs_1",
@@ -909,7 +1003,57 @@
9091003
"recipe_bag_builder",
9101004
"recipe_bag_food",
9111005
"recipe_bag_universal",
912-
"recipe_bag_universal_big"
1006+
"recipe_bag_universal_big",
1007+
"ash_on_shawl",
1008+
"b_grat_points_incr:1",
1009+
"b_grat_points_incr:2",
1010+
"b_grat_points_incr:3",
1011+
"b_sin_shard:1",
1012+
"b_sin_shard:2",
1013+
"b_sin_shard:3",
1014+
"b_souls:1",
1015+
"b_souls:2",
1016+
"b_souls:3",
1017+
"blue_paint",
1018+
"brown_paint",
1019+
"d_green_paint",
1020+
"d_violet_paint",
1021+
"diamond_paint",
1022+
"envy_charged_shard",
1023+
"gerry_tooth",
1024+
"glass_broken",
1025+
"global_control",
1026+
"gluttony_charged_shard",
1027+
"gratitude_as_item",
1028+
"grave_bot_mrb_6",
1029+
"grave_bot_mrb_7",
1030+
"grave_bot_mrb_8",
1031+
"grave_bot_stn_6",
1032+
"grave_bot_stn_7",
1033+
"grave_bot_stn_8",
1034+
"grave_top_sculpt_mrb_4",
1035+
"grave_top_sculpt_mrb_5",
1036+
"grave_top_sculpt_stn_4",
1037+
"grave_top_sculpt_stn_5",
1038+
"green_paint",
1039+
"lost_book_part",
1040+
"lust_charged_shard",
1041+
"note_with_rumors",
1042+
"ode_for_bishop",
1043+
"pride_charged_shard",
1044+
"red_paint",
1045+
"sauce_for_meal",
1046+
"sin_shard",
1047+
"sin_shard_body_part",
1048+
"sloth_charged_shard",
1049+
"soul_harmed",
1050+
"soul_harmed_body_part",
1051+
"soul_healed",
1052+
"souls_zone_key",
1053+
"spice_paint",
1054+
"violet_paint",
1055+
"wrath_charged_shard",
1056+
"yellow_paint"
9131057
],
9141058
"perks":
9151059
[

data/html/loadsavefile.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,17 @@ <h3>Notes:</h3>
6969
</div>
7070
<div class="thankscon">
7171
<ul>
72+
<li>
73+
If you have a save file which could help (for example a more up to date body of a perfect worker or the entire tech tree with all DLCs),
74+
feel free to upload your save to an issue. I will take the data from that save then to improve
75+
the several features of this save editor.
76+
</li>
7277
<li>
7378
Every loaded save file is kept in memory, meaning you can expect almost up to 200 MB per save file which you load.
7479
</li>
7580
<li>
7681
No sprites / images used, were created by me, they are from
77-
<a href="http://lazybeargames.com/" target="_blank">Lazy Bear Games</a> (and most of them were extracted from the WIKI)
82+
<a href="http://lazybeargames.com/" target="_blank">Lazy Bear Games</a>
7883
</li>
7984
<li>
8085
Additionally the localization file is extracted from

data/html/no settings.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ <h3>Hey, seems like you are using this Application for the first time, meaning y
8888
Enabled
8989
</label>
9090
</div>
91+
<div class="preswitch">Better Save Soul Support</div>
92+
<div class="switch">
93+
<label>
94+
Disabled
95+
<input type="checkbox" id="bettersavesoul">
96+
<span class="lever"></span>
97+
Enabled
98+
</label>
99+
</div>
91100
<div class="note">This allows you to select which DLC you own.
92101
<br/> Depending on owned DLC different autocomplete names are shown.
93102
Additionally some buttons have different functionality depending on the DLCs.
@@ -166,6 +175,7 @@ <h3>Hey, seems like you are using this Application for the first time, meaning y
166175
"expert": $("#expert").prop("checked") || false,
167176
"strangersins": $("#strangersins").prop("checked") || false,
168177
"gameofcrone": $("#gameofcrone").prop("checked") || false,
178+
"bettersavesoul": $("#bettersavesoul").prop("checked") || false,
169179
"backupamount": parseInt($("#backupnum").val()) || 2
170180
}
171181
await eel.set_settings(settings)();
@@ -187,6 +197,7 @@ <h3>Hey, seems like you are using this Application for the first time, meaning y
187197
$("#expert").prop("checked", b["expert"]);
188198
$("#strangersins").prop("checked", b["strangersins"]);
189199
$("#gameofcrone").prop("checked", b["gameofcrone"]);
200+
$("#bettersavesoul").prop("checked", b["bettersavesoul"]);
190201
$("#port").val(b["port"]);
191202
$("#backupnum").val(b["backupamount"]);
192203
}

data/html/rsc/item_source_file.png

79.4 KB
Loading

data/html/rsc/npc_euric.png

1.83 KB
Loading

data/html/rsc/npc_smiler.png

3.21 KB
Loading

0 commit comments

Comments
 (0)