Обновлены цены на снайперские туррели

Удаление лишних рыб из сборки (#85)
Фикс багов подбора у RPG (#89)
This commit is contained in:
2024-08-02 19:13:01 +03:00
parent d63441e5fd
commit b5ed31105c
4 changed files with 74 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
--todo check entity creation ammo_category = "cannon-shell" if so record max dist and update ammo
--todo check entity creation ammo_category = "cannon-shell" if so record max dist and update ammo
log("Creating Types")
if not heroturrets.defines then require ("prototypes.scripts.defines") end
@@ -383,6 +383,12 @@ local local_create_turret = function(turret,rank,rank_string,mod)
end
end
end
if entity.attack_parameters.ammo_type.action.range ~= nil then --drd
entity.attack_parameters.ammo_type.action.range = entity.attack_parameters.ammo_type.action.range * mod
end
if entity.attack_parameters.ammo_type.action.width ~= nil then
entity.attack_parameters.ammo_type.action.width = entity.attack_parameters.ammo_type.action.width * mod
end --drd
elseif entity.attack_parameters.ammo_category ~= nil and entity.attack_parameters.range ~= nil then
if cannon_ammo_ranges[entity.attack_parameters.ammo_category] == nil then
cannon_ammo_ranges[entity.attack_parameters.ammo_category] = entity.attack_parameters.range