Amount check
This commit is contained in:
parent
d918533ebe
commit
82539c5af8
3 changed files with 15 additions and 2 deletions
|
|
@ -7,3 +7,7 @@ class_name WeaponResource
|
|||
@export var dropped_scene: PackedScene
|
||||
@export var weapon_system_scene: PackedScene
|
||||
@export var slot: StringName
|
||||
|
||||
func get_gid() -> StringName:
|
||||
var path_split: PackedStringArray = resource_path.split("/")
|
||||
return path_split[len(path_split)-1].trim_suffix(".tres")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue