Skip to content

Commit

Permalink
Agrego DesagradoYTemor
Browse files Browse the repository at this point in the history
  • Loading branch information
regueiranehuen authored Nov 22, 2024
1 parent bc7a530 commit 4728bce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions emociones.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ class Tristeza inherits Emocion{
}

}

class DesagradoYTemor inherits Emocion{
override method puedeLiberarse(persona){
return super(persona) && persona.cantEventos().size() > intensidad
}
}

0 comments on commit 4728bce

Please sign in to comment.