Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit c49f0e1

Browse files
authored
update diff mods
forgot to update the diff mods for the new version
1 parent c3f2d44 commit c49f0e1

1 file changed

Lines changed: 37 additions & 39 deletions

File tree

CrabChampionSaveManager.py

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
isExe = False
2323
isLinux = False
2424

25-
Version = "4.0.0"
25+
VERSION = "4.0.1"
2626

2727
if platform.system() == "Linux":
2828
isLinux = True
@@ -37,24 +37,24 @@ def unhandledExeceptionHandle(exc_type, exc_value, exc_traceback):
3737
for i in ar:
3838
trace += i
3939

40-
infoScreen(
40+
f = open("traceback.log", "w")
41+
f.write(
4142
"An Execption/Error happened, contact dev to report or check wiki\n\nType : "
4243
+ str(exc_type)
4344
+ "\nValue : "
4445
+ str(exc_value)
4546
+ "\nTraceback : \n"
4647
+ trace
4748
)
48-
f = open("traceback.log", "w")
49-
f.write(
49+
f.close()
50+
infoScreen(
5051
"An Execption/Error happened, contact dev to report or check wiki\n\nType : "
5152
+ str(exc_type)
5253
+ "\nValue : "
5354
+ str(exc_value)
5455
+ "\nTraceback : \n"
5556
+ trace
5657
)
57-
f.close()
5858
time.sleep(10)
5959
pass
6060

@@ -1567,7 +1567,7 @@ def loadCache():
15671567
start = time.time()
15681568
infoScreen("Loading Cache\nThis might take a few seconds")
15691569
global cacheLock
1570-
global Version
1570+
global VERSION
15711571
global owd
15721572
cacheLock = threading.Lock()
15731573
global cacheJSON
@@ -1602,15 +1602,15 @@ def loadCache():
16021602
try:
16031603
cacheVersion = cacheJSON["Version"]
16041604
except BaseException:
1605-
cacheJSON["Version"] = Version
1605+
cacheJSON["Version"] = VERSION
16061606
cacheVersion = "0.0.0"
16071607
for backup in backups:
16081608
currentCS = getChecksum(backup + "/SaveSlot.sav")
16091609
try:
16101610
cacheCS = cacheJSON["BackupData"][backup]["CheckSum"]
16111611
except BaseException:
16121612
cacheCS = ""
1613-
if currentCS != cacheCS or versionToValue(cacheVersion) < versionToValue(Version):
1613+
if currentCS != cacheCS or versionToValue(cacheVersion) < versionToValue(VERSION):
16141614
t = threading.Thread(target=genBackupData, args=(backup,))
16151615
t.start()
16161616
threads.append(t)
@@ -1623,13 +1623,13 @@ def loadCache():
16231623
CurrentSaveCacheCS = ""
16241624
if CurrentSaveCS != CurrentSaveCacheCS or versionToValue(
16251625
cacheVersion
1626-
) < versionToValue(Version):
1626+
) < versionToValue(VERSION):
16271627
t = threading.Thread(target=genBackupData, args=("SaveGames",))
16281628
t.start()
16291629
threads.append(t)
16301630
for t in threads:
16311631
t.join()
1632-
cacheJSON["Version"] = Version
1632+
cacheJSON["Version"] = VERSION
16331633
file.seek(0)
16341634
file.truncate()
16351635
file.write(json.dumps(cacheJSON, indent=4))
@@ -5196,18 +5196,24 @@ class Paths:
51965196
"Homing Barrels - Enemies spawn homing explosive barrels when eliminated",
51975197
]
51985198
DIFFMODS = [
5199-
"Random Islands",
5200-
"Regenerating Enemies",
5201-
"Locked Slots",
5202-
"Buffed Enemies",
5203-
"Manual Collection",
5204-
"Double Challenge",
5205-
"Resurrecting Enemies",
5206-
"Evolved Enemies",
5207-
"Unfair Bosses",
5208-
"Eternal Punishment",
5209-
"Volatile Explosions",
5210-
"No Safety Net",
5199+
["Random Islands", "Island types are chosen randomly instead of in a set order"],
5200+
[
5201+
"Regenerating Enemies",
5202+
"Enemies regenarate health a short time after taking damage",
5203+
],
5204+
["Locked Slots", "Some inventory slot are locked and must be unlocked with crystals"],
5205+
["Buffed Enemies", "Enemies have a chance to spawn with a powerful buff"],
5206+
[
5207+
"Resurrecting Enemies",
5208+
"Enemies have a chance to spawn copies of themselves when eliminated",
5209+
],
5210+
["Double Challenge", "Double challenge modifiers on challenge portals"],
5211+
["Surging Enemies", "Enemies spawn in much faster"],
5212+
["Evolved Enemies", "New enemies appear"],
5213+
["Unfair Bosses", "All elite and boss islands have double the enmeies to fight"],
5214+
["Eternal Punishment", "Taking damage lowers max health"],
5215+
["Limited Heals", "All healing is reduced by 50%"],
5216+
["No Safety Net", "No more death prevention when reaching 1 health"],
52115217
]
52125218
ISLANDTYPE = [
52135219
"Automatic",
@@ -5219,20 +5225,12 @@ class Paths:
52195225
"Parkour",
52205226
"CrabIsland",
52215227
]
5222-
DIFFMODSDETAILS = [
5223-
"Island types are chosen randomly instead of in a set order",
5224-
"Enemies regenarate health a short time after taking damage",
5225-
"Some inventory slot are locked and must be unlocked with crystals",
5226-
"Enemies have a chance to spawn with a powerful buff",
5227-
"Crystals must be manually picked up by walking near them before they expire",
5228-
"Double challenge modifiers on challenge portals",
5229-
"Enemies have a chance to spawn copies of themselves when eliminated",
5230-
"New enemies appear",
5231-
"All elite and boss islands have double the enmeies to fight",
5232-
"Taking damage lowers max health",
5233-
"No damage immunity when eliminating exploding enemies at close range",
5234-
"No more death prevention when reaching 1 health",
5235-
]
5228+
DIFFMODSDETAILS = []
5229+
for d in range(len(DIFFMODS)):
5230+
DIFFMODSDETAILS.append(DIFFMODS[d][1])
5231+
DIFFMODS[d] = DIFFMODS[d][0]
5232+
5233+
52365234
setUpIslands()
52375235
WEAPONMODS = json.loads("{}")
52385236
GRENADEMODS = json.loads("{}")
@@ -5299,7 +5297,7 @@ class Paths:
52995297

53005298
# 30 x 120
53015299

5302-
LatestVersion = Version
5300+
LatestVersion = VERSION
53035301
latestReleaseURL = "https://github.com/O2theC/CrabChampionSaveManager/releases/latest"
53045302
try:
53055303
response = requests.get(latestReleaseURL)
@@ -5311,7 +5309,7 @@ class Paths:
53115309
except BaseException:
53125310
None
53135311

5314-
VersionValue = versionToValue(Version)
5312+
VersionValue = versionToValue(VERSION)
53155313
LatestValue = versionToValue(LatestVersion)
53165314

53175315

@@ -5322,7 +5320,7 @@ class Paths:
53225320
lastSel = 0
53235321
while True:
53245322
mainMenuPrompt = makeMainMenuPrompt(
5325-
Version, LatestVersion, VersionValue, LatestValue, updatePrompt
5323+
VERSION, LatestVersion, VersionValue, LatestValue, updatePrompt
53265324
)
53275325
updatePrompt = False
53285326
options = "Manage Backups\nManage Presets\nInfo/How to use\nSettings\nExit"

0 commit comments

Comments
 (0)