From 4728bceb629889d39a73d9febe7bcfd3fb06a40f Mon Sep 17 00:00:00 2001 From: regueiranehuen Date: Fri, 22 Nov 2024 09:24:53 -0300 Subject: [PATCH] Agrego DesagradoYTemor --- emociones.wlk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emociones.wlk b/emociones.wlk index fe4a724..f1d8bf4 100644 --- a/emociones.wlk +++ b/emociones.wlk @@ -65,3 +65,9 @@ class Tristeza inherits Emocion{ } } + +class DesagradoYTemor inherits Emocion{ + override method puedeLiberarse(persona){ + return super(persona) && persona.cantEventos().size() > intensidad + } +}