Files

18 lines
289 B
JavaScript
Raw Permalink Normal View History

2021-09-13 09:34:08 +02:00
class entity_pickup_nails_t extends entity_pickup_t {
_init() {
super._init();
this._texture = 24;
}
_pickup() {
for (let w of game_entity_player._weapons) {
if (w instanceof(weapon_nailgun_t)) {
w._ammo += 50;
audio_play(sfx_pickup);
this._kill();
}
}
}
}