URL build goes to custom, ammo goes to all guns
This commit is contained in:
20
js/game.js
20
js/game.js
@@ -199,7 +199,7 @@ const game = {
|
||||
if (b.inventory[0] === b.activeGun) {
|
||||
let lessDamage = 1
|
||||
for (let i = 0, len = b.inventory.length; i < len; i++) {
|
||||
lessDamage *= 0.85 // 1 - 0.15
|
||||
lessDamage *= 0.87 // 1 - 0.15
|
||||
}
|
||||
document.getElementById("mod-entanglement").innerHTML = " " + ((1 - lessDamage) * 100).toFixed(0) + "%"
|
||||
} else {
|
||||
@@ -595,24 +595,6 @@ const game = {
|
||||
document.getElementById("dmg").style.display = "inline";
|
||||
document.getElementById("health-bg").style.display = "inline";
|
||||
|
||||
// window.onmousedown = function (e) {
|
||||
// //mouse up event in set in index.js
|
||||
|
||||
// // game.mouseDown = true;
|
||||
// if (e.which === 3) {
|
||||
// game.mouseDownRight = true;
|
||||
// } else {
|
||||
// game.mouseDown = true;
|
||||
// }
|
||||
// // keep this disabled unless building maps
|
||||
// // if (!game.mouseDown){
|
||||
// // game.getCoords.pos1.x = Math.round(game.mouseInGame.x / 25) * 25;
|
||||
// // game.getCoords.pos1.y = Math.round(game.mouseInGame.y / 25) * 25;
|
||||
// // }
|
||||
|
||||
// // mech.throwBlock();
|
||||
// };
|
||||
|
||||
if (game.firstRun) {
|
||||
mech.spawn(); //spawns the player
|
||||
mod.setupAllMods(); //doesn't run on reset so that gun mods carry over to new runs
|
||||
|
||||
Reference in New Issue
Block a user