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 15:57:23 +03:00

13 lines
278 B
Plaintext

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