Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Commit

Permalink
Balance and bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
PFGimenez committed Mar 8, 2019
1 parent 5ce55b8 commit aff4bb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 1rl.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def main():
inheritance = out.get("inheritance")
if inheritance:
msglog.add_log("You upgraded your "+item.fego.value.get("name")+" "+item.fslot.value.get("name")+": it is already quite stable!", color_active=const.green, color_inactive=const.desat_green)
item.stability = max(item.stability, inheritance.stability)
item.stability = min(item.max_stability, max(item.stability, inheritance.stability))
render_inv = True
turns.add_turn(player.time_malus + const.time_equip, const.TurnType.PLAYER, player)
player.reset_time_malus()
Expand Down
2 changes: 1 addition & 1 deletion constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class FeatureEgo(enum.Enum):

m1 = {"name": "Sisyphean", "char": "m"}
m2 = {"name": "Lovecraftian", "char": "m"}
m3 = {"name": "Elvish", "char": "m"}
m3 = {"name": "Tolkienesque", "char": "m"}

class WeaponEgo(enum.Enum):
c = {"name": "telepathic", "fego": [FeatureEgo.c1, FeatureEgo.c2, FeatureEgo.c3], "char": "t", "w_class": "ConsciousWeapon", "player_color": base3}
Expand Down
4 changes: 2 additions & 2 deletions entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def attack(self, target, msglog, turns, passive=False):
else:
effective = self.is_effective_on(target.fslot)
if effective:
dmg = random.randint(1, self.level + 2)
dmg = random.randint(1, 2*self.level)
else:
dmg = random.randint(1, self.level)
target.hp -= dmg
Expand All @@ -128,7 +128,7 @@ def effect_on_active(self, player):
def describe(self):
d = ["Weapons help you fight bugs.", "", "Each hit uses "+str(self.duration)+"s.", "Its hit probability is "+str(round(self.success_rate*100))+"%."]
l = self.wego.value.get("fego")
d += ["", "Damage:","1d"+str(self.level+2)+" against "+l[0].value.get("name")+", "+l[1].value.get("name")+" and "+l[2].value.get("name")+" bugs.","1d"+str(self.level)+" against other bugs."]
d += ["", "Damage:","1d"+str(self.level*2)+" against "+l[0].value.get("name")+", "+l[1].value.get("name")+" and "+l[2].value.get("name")+" bugs.","1d"+str(self.level)+" against other bugs."]

if self.wslot.value.get("instable"):
d += ["", "It's a hack: fighting bugs decreases the stability!"]
Expand Down

0 comments on commit aff4bb5

Please sign in to comment.