mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-08 01:49:35 +01:00
Fix hit stack calculation.
This commit is contained in:
parent
9fad900a51
commit
1cb11ca32a
@ -132,6 +132,7 @@ func _add_to_map(var img : Image, pseed : int) -> void:
|
||||
func get_hit_stack(var pos : Vector2) -> Array:
|
||||
var r : Rect2 = get_rect()
|
||||
var local_pos : Vector2 = pos - rect.position
|
||||
r.position = Vector2()
|
||||
|
||||
var result : Array = Array()
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
[sub_resource type="Resource" id=2]
|
||||
resource_name = "Spawner"
|
||||
script = ExtResource( 4 )
|
||||
rect = Rect2( 165, 197, 22, 25 )
|
||||
rect = Rect2( 165, 197, 5, 5 )
|
||||
locked = false
|
||||
trainer = ExtResource( 8 )
|
||||
vendor = ExtResource( 9 )
|
||||
|
Loading…
Reference in New Issue
Block a user