Skip to content

[lab-data-vikings] Patricia Carmona#110

Open
patricrp wants to merge 5 commits intoironhack-datalabs:masterfrom
patricrp:lab-datavikings-patri
Open

[lab-data-vikings] Patricia Carmona#110
patricrp wants to merge 5 commits intoironhack-datalabs:masterfrom
patricrp:lab-datavikings-patri

Conversation

@patricrp
Copy link
Copy Markdown

No description provided.

@blancalluch
Copy link
Copy Markdown

Muy buen trabajo Patricia!
Un único comentario para mejorar.
Cuando defines el método receiveDamage de Vikings y de Saxons, si que es conveniente que herede de Soldier, y añadas las modificaciones, en vez de volver a definir toda la función.
(En este caso tampoco es muy importante ya que no te ahorras código).

def receiveDamage(self, damage):
        super().receiveDamage(damage)
        if self.health > 0:
            return self.name + " has received " + str(damage) + " points of damage"
        else:
            return self.name + " has died in act of combat"

Todo perfecto, enhorabuena!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants