Skip to content

Commit

Permalink
Update personas.wlk
Browse files Browse the repository at this point in the history
  • Loading branch information
regueiranehuen authored Nov 22, 2024
1 parent 153c1f2 commit 6b3aabb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions personas.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ class Persona{
// 4)
method vivirEvento(evento){
emociones.forEach({emocion=>emocion.agregarEvento()})
emociones.forEach({emocion=>emocion.puedeLiberarse(self)
emocion.liberarse(evento)})

var emocionesPuedenLiberarse = emociones.filter({emocion=>emocion.puedeLiberarse(self)})
emocionesPuedenLiberarse.forEach({emocion=>emocion.liberarse(evento)})
}


Expand Down

0 comments on commit 6b3aabb

Please sign in to comment.