@@ -52,7 +52,9 @@ export class MovesView {
5252 typeDiv . style . background = `url("${ IMGS_PATH } ${ m . type } type.png") center/80% no-repeat`
5353 moveItem . style . backgroundColor = `var(--${ m . type } -clr-bg-type)`
5454
55- if ( m . type == "dark" || m . type == "ground" || m . type == "water" || m . type == "steel" || m . type == "rock" || m . type == "poison" || m . type == "ghost" || m . type == "grass" ) {
55+ if ( m . type == "dark" || m . type == "ground" || m . type == "water" || m . type == "steel" || m . type == "rock"
56+ || m . type == "poison" || m . type == "ghost" || m . type == "grass" ) {
57+
5658 pwrWrapp . style . boxShadow = "0 0 .3rem var(--clr-primary-white)"
5759 accWrapp . style . boxShadow = "0 0 .3rem var(--clr-primary-white)"
5860 ppWrapp . style . boxShadow = "0 0 .3rem var(--clr-primary-white)"
@@ -71,15 +73,13 @@ export class MovesView {
7173 else
7274 pwrValue . textContent = "--"
7375
74-
7576 if ( m . accuracy )
7677 accValue . textContent = m . accuracy
7778 else
7879 accValue . textContent = "--"
7980
8081 ppValue . textContent = m . pp
8182
82-
8383 typeWrapper . appendChild ( typeDiv )
8484 nameWrapp . appendChild ( nameP )
8585 moveTop . append ( typeWrapper , nameWrapp )
@@ -159,6 +159,10 @@ export class MovesView {
159159 document . querySelector ( ".moves-detail-move-desc" ) . textContent = m . description
160160 document . querySelector ( ".moves-detail-move-effect" ) . textContent = m . effect
161161
162+ document . querySelector ( ".move-detail-pwr-value" ) . textContent = m . power ?? "--"
163+ document . querySelector ( ".move-detail-acc-value" ) . textContent = m . accuracy ?? "--"
164+ document . querySelector ( ".move-detail-pp-value" ) . textContent = m . pp ?? "--"
165+
162166 document . querySelector ( ".moves-detail-type-wrapp" ) . style . backgroundColor = `var(--${ m . type } -clr-bg-type)`
163167 document . querySelector ( ".moves-detail-type-icon" ) . style . background = `url("${ IMGS_PATH } ${ m . type } type.png") center/contain no-repeat`
164168 document . querySelector ( ".moves-detail-cat-icon" ) . style . background = `url("${ IMGS_PATH } ${ m . category } .png") center/contain no-repeat`
0 commit comments