Introduction
Introduction Statistics Contact Development Disclaimer Help
Show damage on attacks. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit aeaf0f986a02abe4369f5f21604a100eb1a515c2
parent f6d9fcb783f2a57ceb89e8a282f8752d3aef436d
Author: Annna Robert-Houdin <[email protected]>
Date: Wed, 30 Aug 2023 12:43:32 +0200
Show damage on attacks.
Diffstat:
M modules/idlerpg/idlerpg-channel-se… | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/modules/idlerpg/idlerpg-channel-service.py b/modules/idlerpg/idler…
@@ -158,21 +158,21 @@ def main(args):
attackinfo = "The hacker "
if damage > 0:
# Attack success
+ hackers[defender][0] -= damage
attackinfo = "%s attacked %s with a %s" \
", causing %s seconds of activity. %s, your " \
- "idle time has been reduced to %s." \
+ "idle time has been increased by %d to %s." \
% (attacker, defender, attackweapon, damage, defender, \
- hackers[defender][0])
- hackers[defender][0] -= damage
+ damage, hackers[defender][0])
elif damage < 0:
# Defence success
damage = abs(damage)
+ hackers[attacker][0] -= damage
attackinfo = "%s defended an attack from %s " \
"with their %s, causing %s seconds of activity. %s, " \
- "your idle time has been reduced to %s." \
+ "your idle time has been reduced by %d to %s." \
% (defender, attacker, defendshield, damage, attacker, \
- hackers[attacker][0])
- hackers[attacker][0] -= damage
+ damage, hackers[attacker][0])
else:
attackinfo = "%s attacked %s with a %s" \
", but %s defended so well with %s, " \
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.