Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Tabu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dennis Willers
Tabu
Commits
5bddb764
Commit
5bddb764
authored
Dec 31, 2020
by
Dennis Willers
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Watch Dog Press Tabu and remove Point from the Explainer Team
parent
50c2d3e9
Pipeline
#333
passed with stages
in 5 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
game.component.ts
src/app/game/game.component.ts
+23
-7
No files found.
src/app/game/game.component.ts
View file @
5bddb764
...
...
@@ -120,13 +120,29 @@ export class GameComponent implements OnInit {
wrongAnswer
():
void
{
this
.
newCard
();
this
.
service
.
removePoint
({
spielname
:
this
.
sessionName
,
team
:
this
.
team
,
red
:
this
.
gameStatus
.
red
,
blue
:
this
.
gameStatus
.
blue
}).
then
(
value
=>
{
this
.
gameStatus
.
red
=
JSON
.
parse
(
value
.
red
);
this
.
gameStatus
.
blue
=
JSON
.
parse
(
value
.
blue
);
});
if
(
this
.
isExplainer
)
{
this
.
service
.
removePoint
({
spielname
:
this
.
sessionName
,
team
:
this
.
team
,
red
:
this
.
gameStatus
.
red
,
blue
:
this
.
gameStatus
.
blue
}).
then
(
value
=>
{
this
.
gameStatus
.
red
=
JSON
.
parse
(
value
.
red
);
this
.
gameStatus
.
blue
=
JSON
.
parse
(
value
.
blue
);
});
}
else
if
(
this
.
isWatchdog
)
{
let
opennentTeam
=
''
;
if
(
this
.
team
===
'
red
'
)
{
opennentTeam
=
'
blue
'
;
}
else
if
(
this
.
team
===
'
blue
'
)
{
opennentTeam
=
'
red
'
;
}
this
.
service
.
removePoint
({
spielname
:
this
.
sessionName
,
team
:
opennentTeam
,
red
:
this
.
gameStatus
.
red
,
blue
:
this
.
gameStatus
.
blue
}).
then
(
value
=>
{
this
.
gameStatus
.
red
=
JSON
.
parse
(
value
.
red
);
this
.
gameStatus
.
blue
=
JSON
.
parse
(
value
.
blue
);
});
}
}
newCard
():
void
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment