@@ -59,7 +59,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
59
59
// Internal Prototypes
60
60
//----------------
61
61
void convert_grenade_to_explosion (ExplosionData * edata , int triple );
62
- ubyte grenade_compute_damage (ObjID target , int wpn_triple , int power_level , ubyte * effect );
63
62
ObjID explosion_ray_cast_attack (ObjID gren_id , ObjID target , ObjLoc * gren_loc , fix radius , fix mass , fix speed );
64
63
void do_object_explosion (ObjID id );
65
64
uchar activate_grenade_on_cursor (void );
@@ -102,22 +101,6 @@ void convert_grenade_to_explosion(ExplosionData *edata, int triple) {
102
101
edata -> penet = GrenadeProps [ctrip ].penetration ;
103
102
}
104
103
105
- // ----------------------------------------------------------------------
106
- // grenade_compute_damage()
107
- //
108
-
109
- ubyte grenade_compute_damage (ObjID target , int wpn_triple , int power_level , ubyte * effect ) {
110
- ubyte effect_class =
111
- (objs [target ].obclass == CLASS_CRITTER ) ? CritterProps [CPNUM (target )].hit_effect : NON_CRITTER_EFFECT ;
112
-
113
- * effect = effect_matrix [effect_class ][GREN_TYPE ][0 ];
114
-
115
- return (compute_damage (target , GrenadeProps [CPTRIP (wpn_triple )].damage_type ,
116
- GrenadeProps [CPTRIP (wpn_triple )].damage_modifier ,
117
- GrenadeProps [CPTRIP (wpn_triple )].offense_value , GrenadeProps [CPTRIP (wpn_triple )].penetration ,
118
- power_level , NULL , NULL , GREN_TYPE ));
119
- }
120
-
121
104
extern ObjID terrain_hit_exclusion ;
122
105
123
106
// ----------------------------------------------------------------------
0 commit comments