Minimum AI shooting power
This commit is contained in:
1 parent
4719080ba7
commit
fdbe482ff7
1 file changed
+2
-2
@@ -7,7 +7,7 @@ export const AI_TYPES = {
|
|||||||
decide(player) {
|
decide(player) {
|
||||||
return {
|
return {
|
||||||
a: randomInt(0, 180),
|
a: randomInt(0, 180),
|
||||||
p: randomInt(PLAYER_INITIAL_POWER, PLAYER_MAX_ENERGY*PLAYER_ENERGY_POWER_MULTIPLIER),
|
p: randomInt(100, PLAYER_MAX_ENERGY*PLAYER_ENERGY_POWER_MULTIPLIER),
|
||||||
currentWeapon: player.currentWeapon,
|
currentWeapon: player.currentWeapon,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -17,7 +17,7 @@ export const AI_TYPES = {
|
|||||||
decide(player) {
|
decide(player) {
|
||||||
return {
|
return {
|
||||||
a: randomInt(0, 180),
|
a: randomInt(0, 180),
|
||||||
p: randomInt(PLAYER_INITIAL_POWER, PLAYER_MAX_ENERGY*PLAYER_ENERGY_POWER_MULTIPLIER),
|
p: randomInt(100, PLAYER_MAX_ENERGY*PLAYER_ENERGY_POWER_MULTIPLIER),
|
||||||
currentWeapon: randomInt(0, player.weapons.length-1),
|
currentWeapon: randomInt(0, player.weapons.length-1),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user