Exemple #1
0
 def log_skill(self, amount, target, old_value, new_value):
     utils.slow_type(
         "%s: [%s] on %s dealing %s dmg. (%d -> %d)\n" % (
             utils.bold(utils.color_red(self.caster.name)),
             utils.color_yellow(str(self)),
             target.name, utils.bold(str(amount)),
             old_value, new_value))
Exemple #2
0
    def log_skill(self, amount, target, old_value, new_value):
        # coloring
        if self.caster in self.world.yourteam:
            color = utils.color_green
        else:
            color = utils.color_red

        description_low = [
            "punches", "kicks", "throws a pebble at"
        ]
        description_mid = [
            "lands a blow on", "hits", "swings at"
        ]
        description_high = [
            "lands a powerful blow on", "injures", "maims"
        ]

        _ratio = amount / old_value
        if _ratio < 0.1:
            description = description_low
        elif 0.1 <= _ratio < 0.25:
            description = description_mid
        else:
            description = description_high

        utils.slow_type("%s: %s %s dealing %s dmg. (%d -> %d)\n" % (
            utils.bold(color(self.caster.name)),
            random.choice(description),
            target.name, utils.bold(str(amount)),
            old_value, new_value))
Exemple #3
0
 def log_skill(self, amount, target, old_value, new_value):
     utils.slow_type(
         "%s: [%s] absorbed mp of %s\n" % (
             utils.bold(utils.color_red(self.caster.name)),
             utils.color_yellow(str(self)), target.name
         ))
Exemple #4
0
 def closing_words(self):
     self.caster.ATK *= 1.35
     utils.slow_type(
         "%s: [%s] on himself increasing ATK.\n" % (
             utils.bold(utils.color_red(self.caster.name)),
             utils.color_yellow(str(self))))
Exemple #5
0
 def log_skill(self, amount, target, old_value, new_value):
     utils.slow_type("%s: [%s] on %s increases ATK.\n" % (
         utils.bold(utils.color_red(self.caster.name)),
         utils.color_yellow(str(self)), target.name))
Exemple #6
0
 def log_skill(self, amount, target, old_value, new_value):
     utils.slow_type(
         "%s: [%s] on %s restoring MP.\n" % (
             utils.bold(utils.color_green(self.caster.name)),
             utils.color_yellow(str(self)), target.name))
Exemple #7
0
 def log_skill(self, amount, target, old_value, new_value):
     utils.slow_type(
         "%s: [%s] on self increase ATK and DEF.\n" % (
             utils.bold(utils.color_green(self.caster.name)),
             utils.color_yellow(str(self))))