first Prototype
This commit is contained in:
parent
e11825c698
commit
35ce267482
481 changed files with 17315 additions and 1 deletions
12
scripts/item/bullet/LuckyBullet/luckyBullet.gd
Normal file
12
scripts/item/bullet/LuckyBullet/luckyBullet.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class_name LuckyBullet extends Bullet
|
||||
|
||||
var minDamage: int = 0
|
||||
var maxDamage: int = 2
|
||||
|
||||
func _init() -> void:
|
||||
type = GLOBALS.ITEMTYPES.LUCKYBULLET
|
||||
|
||||
func getDamage() -> int:
|
||||
randomize()
|
||||
var rng = RandomNumberGenerator.new()
|
||||
return rng.randi_range(minDamage, maxDamage)
|
||||
Loading…
Add table
Add a link
Reference in a new issue