Skip to content

Commit

Permalink
Centerign note and resetiing hitpoints during loading
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezo committed Feb 8, 2024
1 parent 980fd58 commit c917331
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
<style>html,body{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}</style><link rel="stylesheet" href="styles.25b54d3c54f3517b.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.25b54d3c54f3517b.css"></noscript></head>
<body class="mat-typography">
<app-root></app-root>
<script src="runtime.c2d2548033d65b02.js" type="module"></script><script src="polyfills.75186c7b7fc1d123.js" type="module"></script><script src="scripts.a1e2309b4257c7b3.js" defer></script><script src="main.74d79b84a90e3163.js" type="module"></script>
<script src="runtime.c2d2548033d65b02.js" type="module"></script><script src="polyfills.75186c7b7fc1d123.js" type="module"></script><script src="scripts.a1e2309b4257c7b3.js" defer></script><script src="main.ae156e2d73ebc46e.js" type="module"></script>

</body></html>

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/app/game/service/snoguess.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class SnoguessService {

async getRandomConcept(reset?: boolean) {
// Do nothing if game state is not playing
this.game.next({ ...this.game.value, state: 'loading', score: reset ? 0 : this.game.value.score });
this.game.next({ ...this.game.value, state: 'loading', score: reset ? 0 : this.game.value.score, hitPoints: reset ? this.maxHitPoints : this.game.value.hitPoints });
const randomIndex = Math.floor(Math.random() * this.randomLimit) + 1;
const response = await lastValueFrom(
this.terminologyService.expandValueSet('^ 816080008 |International Patient Summary| {{ C definitionStatus = defined }}', '', randomIndex, 1)
Expand Down
1 change: 1 addition & 0 deletions src/app/game/snoguess-main/snoguess-main.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@
font-size: 0.8rem;
font-weight: lighter;
margin-top: 1rem;
text-align: center;
}

.hints-container {
Expand Down

0 comments on commit c917331

Please sign in to comment.