gamma ray rename free-electron laser
"gamma-ray laser" renamed "free-electron laser" to make more scientific sense since gamma rays would go right through walls laser diode now makes lasers blue free-electron laser can no longer work with laser diode pressure wave has a bit more damage crouch mode works different (much higher fire rate, low arc) integrated armament gives 35% dmg (was 22%) but I fixed a bug where it gave an extra 33% ammo mine gun gets 25% less ammo all mines do 30% more damage trying to make shotgun better at close range and worse at distance shotgun slug is much slower, but does 60% more damage nail shot has a 20% wider spread, and is 20% slower, but does 20% more damage finalBoss has 15% less health to balance all the buffs ammo power ups give 15% less ammo damage done by mobs now scales up a bit faster each level damage done by you now scales down a bit faster each level
This commit is contained in:
@@ -371,7 +371,10 @@ const powerUps = {
|
||||
if (tech.isAmmoForGun && b.inventory.length > 0 && b.activeGun) {
|
||||
const target = b.guns[b.activeGun]
|
||||
if (target.ammo !== Infinity) {
|
||||
const ammoAdded = Math.ceil(Math.random() * target.ammoPack) + Math.ceil(0.7 * Math.random() * target.ammoPack)
|
||||
|
||||
// const ammoAdded = Math.ceil(Math.random() * target.ammoPack) + Math.ceil(0.7 * Math.random() * target.ammoPack)
|
||||
// const ammoAdded = Math.ceil((Math.random() + 0.5 * Math.random()) * target.ammoPack)
|
||||
const ammoAdded = Math.ceil((0.5 * Math.random() + 0.4 * Math.random()) * target.ammoPack)
|
||||
target.ammo += ammoAdded
|
||||
simulation.makeTextLog(`${target.name}.<span class='color-gun'>ammo</span> <span class='color-symbol'>+=</span> ${ammoAdded}`)
|
||||
}
|
||||
@@ -379,7 +382,7 @@ const powerUps = {
|
||||
for (let i = 0, len = b.inventory.length; i < len; i++) {
|
||||
const target = b.guns[b.inventory[i]]
|
||||
if (target.ammo !== Infinity) {
|
||||
const ammoAdded = Math.ceil(Math.random() * target.ammoPack)
|
||||
const ammoAdded = Math.ceil((0.5 * Math.random() + 0.4 * Math.random()) * target.ammoPack) //Math.ceil(Math.random() * target.ammoPack)
|
||||
target.ammo += ammoAdded
|
||||
simulation.makeTextLog(`${target.name}.<span class='color-gun'>ammo</span> <span class='color-symbol'>+=</span> ${ammoAdded}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user