Skip to content

Commit

Permalink
Update emociones.wlk
Browse files Browse the repository at this point in the history
  • Loading branch information
regueiranehuen authored Nov 22, 2024
1 parent cf95afa commit 153c1f2
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions emociones.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,7 @@ class Alegria inherits Emocion{
}

override method liberarse(evento){

//intensidad = 0.max(self.alLiberarse(evento)) // >= 0

super(evento)

if (intensidad < 0){
intensidad=0
}

intensidad = 0.max(self.alLiberarse(evento)) // >= 0
}

}
Expand Down Expand Up @@ -107,6 +99,8 @@ class Ansiedad inherits Emocion{
// Nuevo valor
var nivelAnsiedad

method nivelAnsiedad()=nivelAnsiedad

// Nuevo cálculo que determina si la ansiedad puede liberarse
method coeficienteAnsiedad() = nivelAnsiedad ** 2 + cantEventos / 2

Expand Down

0 comments on commit 153c1f2

Please sign in to comment.