various fixes

This commit is contained in:
bee
2026-07-09 08:18:48 +02:00
parent c4f2c0a202
commit e78d11998f
10 changed files with 33 additions and 25 deletions
+4
View File
@@ -12,6 +12,10 @@ func can_mount(def: WeaponDef) -> bool:
func mount(def: WeaponDef) -> bool:
if not can_mount(def):
push_warning("%s can't mount %s" % [
name,
def.display_name if def != null else "<null def>"
])
return false
unmount()
weapon = def.weapon_scene.instantiate()