Skip to content

Commit

Permalink
more Mañic's stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
danielferro69 committed May 23, 2023
1 parent 34f8b80 commit e79870c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/escenas/libroPrimaria/EscenaManic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class EscenaManic extends EscenaDesdeMapa {
actor.escala *= this.escalaSegunCuadricula(0.6);
});

this.obtenerActoresConEtiquetas(["Planeta"]).forEach(actor => {
this.obtenerActoresConEtiqueta("Planeta").forEach(actor => {
actor.escala *= this.escalaSegunCuadricula(0.6);
});

Expand Down Expand Up @@ -73,12 +73,21 @@ class EscenaManic extends EscenaDesdeMapa {
return this.telescopiosArreglados() || this.noHay("Telescopio")
}

observados(actor): boolean {
return this.todosLosActoresCumplen(actor, "recoger")
}

observacionResuelta(actor): boolean {
return this.observados(actor) || this.noHay(actor)
}


noHay(actor): boolean {
return this.contarActoresConEtiqueta(actor) == 0
}

estaResueltoElProblema(): boolean {
return this.telescopioResuelto() && this.noHay("Estrella") && this.noHay("Planeta")
return this.telescopioResuelto() && this.observacionResuelta("Estrella") && this.observacionResuelta("Planeta")
}

archivoFondo() {
Expand Down

0 comments on commit e79870c

Please sign in to comment.