質問編集履歴
2
スペル/名前ミス修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,7 +126,7 @@
|
|
126
126
|
|
127
127
|
function doBattle(){
|
128
128
|
|
129
|
-
if (Math.random() < teki[0].kogekiRate) {
|
129
|
+
if (Math.random() < tekiArray[0].kogekiRate) {
|
130
130
|
|
131
131
|
Hero.hitPoints -= tekiArray[0].firepower;
|
132
132
|
|
1
classのコピペ漏れの箇所を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
class Ship{
|
38
38
|
|
39
|
-
constructor(, firepower, kogekiRate){
|
39
|
+
constructor(hitPoints, firepower, kogekiRate){
|
40
40
|
|
41
41
|
this.hitPoints = hitPoints;
|
42
42
|
|