Обновлены цены на снайперские туррели
Удаление лишних рыб из сборки (#85) Фикс багов подбора у RPG (#89)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user