starfighter/src
onpon4 fa43f2aabe Fixed the experimental fighter not running away from chargers.
This oddity was caused by exactly what I thought it was caused by:
the code assumed that all bullets are created equal, and each bullet
had a 1 in 50 chance of causing the ship to run away. Well, the
charger inflicts so much damage that 50 shots would be a ridiculous
amount of damage for even the experimental fighter.

So now, except in Classic difficulty, whether or not it runs away
is determined partly by how much damage a weapon inflicts.
Specifically, the chance is now the damage of the bullet out of 150.

High-damage weapons are still a useful idea; after all, a 100 damage
weapon is 100 guaranteed damage, even if the fighter is likely to flee.
However, it gets rid of the skewed nature of the fleeing behavior and
prevents the charger from subverting the purpose of the behavior.
2016-01-09 08:01:23 -05:00
..
Starfighter.cpp Moved cutscenes to C. 2016-01-04 20:17:06 -05:00
Starfighter.h Moved cutscenes to C. 2016-01-04 20:17:06 -05:00
alien.cpp Fixed the experimental fighter not running away from chargers. 2016-01-09 08:01:23 -05:00
alien.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
audio.cpp Updated copyright notices. 2016-01-07 21:32:40 -05:00
audio.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
bullet.cpp Fixed more magic numbers. 2016-01-05 22:12:29 -05:00
bullet.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
cargo.cpp Fixed more magic numbers. 2016-01-05 22:12:29 -05:00
cargo.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
collectable.cpp Fixed positioning of mine explosions. 2016-01-06 20:49:02 -05:00
collectable.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
colors.cpp Updated copyright notices. 2016-01-07 21:32:40 -05:00
colors.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
cutscene.cpp Removed the "planets" data files. 2016-01-08 21:33:40 -05:00
cutscene.h Moved cutscenes to C. 2016-01-04 20:17:06 -05:00
defs.h Removed the "planets" data files. 2016-01-08 21:33:40 -05:00
engine.cpp Fixed more magic numbers. 2016-01-05 22:12:29 -05:00
engine.h More cleanup. 2016-01-02 17:37:19 -05:00
event.cpp Renamed "FACE_" enum values to "FS_". 2016-01-04 09:07:30 -05:00
event.h Some cleanup. 2016-01-03 14:31:39 -05:00
explosion.cpp Fixed more magic numbers. 2016-01-05 22:12:29 -05:00
explosion.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
game.cpp Removed the code that caused you to briefly stop when you finished Ellesh. 2016-01-08 16:56:07 -05:00
game.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
gfx.cpp Removed the very last of the image-related magic numbers (in source code). 2016-01-06 20:35:37 -05:00
gfx.h Removed the very last of the image-related magic numbers (in source code). 2016-01-06 20:35:37 -05:00
intermission.cpp Changed the AI of the executive transport to "evasive". 2016-01-09 07:37:36 -05:00
intermission.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
loadSave.cpp Removed the "planets" data files. 2016-01-08 21:33:40 -05:00
loadSave.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
messages.cpp Updated copyright notices. 2016-01-07 21:32:40 -05:00
messages.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
misc.cpp Renamed "FACE_" enum values to "FS_". 2016-01-04 09:07:30 -05:00
misc.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
missions.cpp Some cleanup. 2016-01-08 22:57:06 -05:00
missions.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
player.cpp Updated copyright notices. 2016-01-07 21:32:40 -05:00
player.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
renderer.cpp More cleanup. 2016-01-02 16:59:48 -05:00
renderer.h More cleanup. 2016-01-02 16:59:48 -05:00
resources.cpp Added special target text for Kline. 2016-01-08 11:09:13 -05:00
resources.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
screen.cpp Some cleanup I forgot to do in gfx.cpp. 2016-01-03 22:39:16 -05:00
screen.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
ship.cpp Fixed being able to get hurt after the mission is over. 2016-01-08 16:36:20 -05:00
ship.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
shop.cpp A little cleanup. 2016-01-08 11:27:28 -05:00
shop.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
structs.h Moved cutscenes to C. 2016-01-04 20:17:06 -05:00
title.cpp Removed the very last of the image-related magic numbers (in source code). 2016-01-06 20:35:37 -05:00
title.h Updated copyright notices. 2016-01-07 21:32:40 -05:00
weapons.cpp Removed the very last of the image-related magic numbers (in source code). 2016-01-06 20:35:37 -05:00
weapons.h Removed the very last of the image-related magic numbers (in source code). 2016-01-06 20:35:37 -05:00
window.cpp Updated copyright notices. 2016-01-07 21:32:40 -05:00
window.h Updated copyright notices. 2016-01-07 21:32:40 -05:00