This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
BitBlaster/objects/o_parent_enemy/Other_7.gml
2025-04-20 22:37:10 +03:00

19 lines
378 B
Plaintext

if sprite_index == sprites[4] {
global.kill_count++;
global.current_score++;
// Drop healing milk
var _drop_chance = 10;
if global.infinite_mode {
_drop_chance = 5;
}
var _chance = irandom(100);
if ((!global.infinite_mode && global.kill_count mod 20 == 0) || _chance <= _drop_chance) {
instance_create_depth(x, y, -600, o_potion);
}
instance_destroy();
}