Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Manish Kumar
webpoke
Commits
97dbff02
Commit
97dbff02
authored
Jun 18, 2020
by
Sofia Aicha Delijaj
Browse files
cleaning up
parent
4e3fae91
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/app/battle/battle.component.ts
View file @
97dbff02
...
...
@@ -11,9 +11,6 @@ export class BattleComponent implements OnInit {
maxHealth
=
100
;
curHealthSelf
=
100
;
curHealthOpp
=
100
;
damage
=
0
;
maTeam
:
any
=
[];
saTeam
:
any
=
[];
pseudo
:
string
;
uid
:
any
;
log
:
boolean
;
...
...
@@ -32,14 +29,6 @@ export class BattleComponent implements OnInit {
constructor
(
private
httpClient
:
HttpClient
)
{
}
teams
(
arg
,
id
){
if
(
id
==
this
.
uid
){
this
.
maTeam
.
push
(
arg
)
}
else
{
this
.
saTeam
.
push
(
arg
)
}
}
typeAdv
(){
this
.
httpClient
.
post
(
"
http://localhost:3000/geteff
"
,
{
typeNous
:
this
.
typeMoi
,
typeEux
:
this
.
typeToi
},
{
responseType
:
'
json
'
,
withCredentials
:
true
}).
subscribe
((
res
:
any
)
=>
(
this
.
calculeDmg
(
res
.
body
[
0
].
damage_factor
)))
...
...
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