Skip to content

Commit

Permalink
moved some code around and messed with art for items
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsndk committed Jun 21, 2024
1 parent ae46368 commit 694782e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions design/drops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1304,33 +1304,11 @@
drops["invasion_accessoriesbox_tier0"].append([0.00001,"invasion_accessoriesbox_tier2"])
drops["invasion_accessoriesbox_tier1"].append([0.001,"invasion_accessoriesbox_tier2"])

# Fillers, potions, upgrade scrolls, g em0 x N?


for key in drops.keys():
if key.find(",")!=-1:
t=drops[key]
del drops[key]
key=key.split(","); key.sort()
key=",".join(key)
drops[key]=t
# Fillers, potions, upgrade scrolls, gem0 x N? offering?

for name in items:
item = items[name]
if not items[name].get("ignore") and not items[name].get("exclusive"):
grade_chance = 0
if items[name].get("grades") and (items[name].get("upgrade") and items[name]["grades"][2]<8 or items[name].get("compound") and items[name]["grades"][2]<3):
grade_chance = 0.1
drops["glitch"].append([0.1,name])
elif items[name].get("grades") and items[name]["grades"][2]==0:
grade_chance = 0.1
drops["glitch"].append([0.1,name])
elif items[name].get("grades") and items[name]["grades"][1]==0:
grade_chance = 0.25
drops["glitch"].append([0.25,name])
else:
grade_chance = 1
drops["glitch"].append([1,name])

# Property Scrolls (str,luck..)
if item["type"] == "pscroll":
Expand Down Expand Up @@ -1372,19 +1350,41 @@

# drops["invasion_accessoriesbox_tier0"].append([minChance, name])

invasion_boxes = ["invasion_scrollbox_tier0",
"invasion_accessoriesbox_tier0",
"invasion_accessoriesbox_tier1",
"invasion_accessoriesbox_tier2"
]
# sort invasion boxes highest to lowest value
drops["invasion_scrollbox_tier0"].sort()
drops["invasion_scrollbox_tier0"].reverse()

drops["invasion_accessoriesbox_tier0"].sort()
drops["invasion_accessoriesbox_tier0"].reverse()

drops["invasion_accessoriesbox_tier1"].sort()
drops["invasion_accessoriesbox_tier1"].reverse()
for key in invasion_boxes:
drops[key].sort()
drops[key].reverse()

drops["invasion_accessoriesbox_tier2"].sort()
drops["invasion_accessoriesbox_tier2"].reverse()
for key in drops.keys():
if key.find(",")!=-1:
t=drops[key]
del drops[key]
key=key.split(","); key.sort()
key=",".join(key)
drops[key]=t

for name in items:
item = items[name]
if not items[name].get("ignore") and not items[name].get("exclusive"):
grade_chance = 0
if items[name].get("grades") and (items[name].get("upgrade") and items[name]["grades"][2]<8 or items[name].get("compound") and items[name]["grades"][2]<3):
grade_chance = 0.1
drops["glitch"].append([0.1,name])
elif items[name].get("grades") and items[name]["grades"][2]==0:
grade_chance = 0.1
drops["glitch"].append([0.1,name])
elif items[name].get("grades") and items[name]["grades"][1]==0:
grade_chance = 0.25
drops["glitch"].append([0.25,name])
else:
grade_chance = 1
drops["glitch"].append([1,name])


for name in items:
if "g" not in items[name]:
Expand Down
Binary file added images/tiles/items/invasion_20.aseprite
Binary file not shown.
Binary file added images/tiles/items/invasion_20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 694782e

Please sign in to comment.