From 341fefda01daba933ae4a0a28970fb51a68a833c Mon Sep 17 00:00:00 2001 From: Mathx2 Date: Mon, 24 Jan 2022 14:43:42 -0800 Subject: [PATCH] Convert revives to a percent of total locations --- worlds/ror2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/ror2/__init__.py b/worlds/ror2/__init__.py index 410c40dd..1ac6e9d4 100644 --- a/worlds/ror2/__init__.py +++ b/worlds/ror2/__init__.py @@ -73,12 +73,12 @@ class RiskOfRainWorld(World): itempool = [] # Add revive items for the player - itempool += ["Dio's Best Friend"] * self.world.total_revivals[self.player] + itempool += ["Dio's Best Friend"] * int(self.world.total_revivals[self.player] / 100 * self.world.total_locations[self.player]) # Fill remaining items with randomly generated junk itempool += self.world.random.choices(list(junk_pool.keys()), weights=list(junk_pool.values()), k=self.world.total_locations[self.player] - - self.world.total_revivals[self.player]) + int(self.world.total_revivals[self.player] / 100 * self.world.total_locations[self.player])) # Convert itempool into real items itempool = list(map(lambda name: self.create_item(name), itempool))