Dateien nach "/" hochladen

This commit is contained in:
2026-03-07 12:16:36 +00:00
parent c9d5922ef6
commit 4ab1cb87e3
2 changed files with 16 additions and 18 deletions

4
ai.lua
View File

@@ -113,11 +113,11 @@ local function try_fire(self_ent, target_pos)
local cd = weapon == "plasma" and SHOOT_COOLDOWN_PLASMA or SHOOT_COOLDOWN_BULLET
if (now - (self_ent._ai_last_shot or 0)) < cd then return false end
-- Spider-Ammo pruefen
-- Spider ammo check
if weapon == "plasma" then
local ammo = self_ent._spider_ammo or SPIDER_AMMO_MAX
if ammo < SPIDER_AMMO_MIN_TO_FIRE then return false end
-- Ammo verbrauchen
-- Consume ammo
self_ent._spider_ammo = math.max(0, ammo - SPIDER_AMMO_COST)
end