Skip to content

Commit

Permalink
Unit Test Errors Pezzawinkle#45
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Feb 9, 2024
1 parent 41a1516 commit a0546a8
Show file tree
Hide file tree
Showing 18 changed files with 434 additions and 416 deletions.
19 changes: 19 additions & 0 deletions Clowns-Processing/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
---------------------------------------------------------------------------------------------------
Version: 1.3.24
Date: ???
Bugfixes:
- Only create recipe alternate Firearms magazine recipe if lead plate is enabled
- Made sure ores are enabled for all catalyst types
- Made sure Aluminium powder is enabled
- Made sure Sintering Ovens are enabled
- Made sure early Chemical Furnaces are enabled (for White Phosphorus)
- Don't create neurotoxin stuff unless Angel's Bioprocessing mod is enabled
- Don't create Dimethylmercury unless Angel's Bioprocessing mod is enabled
- Removed fluid Boric Acid (completely unused)
- Set minimum machine tiers for Violet Algae and Smelting recipes
- Changed Sand Sluicing recipe to produce Osmium Ore instead of Chrome Ore
- Swapped effects of Mercury Processing 1 and 2
- Added missing tech prerequisites
- Changed Depleted Uranium Smelting techs to be different science pack tiers
- Increased the science pack tier of Phosphorus Processing techs
- Changed Uranium Processing techs to be different science pack tiers
---------------------------------------------------------------------------------------------------
Version: 1.3.23
Date: 2024-01-01
Bugfixes:
Expand Down
23 changes: 9 additions & 14 deletions Clowns-Processing/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@
if not clowns then clowns={} end
if not clowns.functions then clowns.functions={} end
if not clowns.tables then clowns.tables ={} end
--check vanilla settings
clowns.special_vanilla = true --assume true, then find out if false
for ore_name, ore_enabled in pairs(angelsmods.trigger.ores or {}) do
if ore_enabled and ore_name ~= "iron" and ore_name ~= "copper" and ore_name ~= "uranium" then
clowns.special_vanilla = false
end
end
if mods["pyrawores"] then --force full mode
clowns.special_vanilla = false
end
if settings.startup["depleted-uranium"].value and clowns.special_vanilla == false then
angelsmods.trigger.smelting_products["enable-all"] = true -- to ensure we get the powder
end
angelsmods.trigger.smelting_products["aluminium"].powder = true
angelsmods.trigger.ores["aluminium"] = true
angelsmods.trigger.ores["gold"] = true
angelsmods.trigger.ores["platinum"] = true
angelsmods.trigger.smelting_products["platinum"].wire = true
angelsmods.trigger.ores["silver"] = true
angelsmods.trigger.ores["titanium"] = true
angelsmods.trigger.ores["tungsten"] = true
angelsmods.trigger.refinery_products["rubyte"] = true
angelsmods.trigger.sintering_tech = true
angelsmods.trigger.early_chemical_furnace = true

require("prototypes.categories")

Expand Down
2 changes: 1 addition & 1 deletion Clowns-Processing/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Clowns-Processing",
"version": "1.3.23",
"version": "1.3.24",
"factorio_version": "1.1",
"title": "MadClown01's Processing",
"author": "MadClown01,Pezzawinkle",
Expand Down
294 changes: 148 additions & 146 deletions Clowns-Processing/prototypes/items/neurotoxin.lua
Original file line number Diff line number Diff line change
@@ -1,163 +1,165 @@
local neurotoxincloud=table.deepcopy(data.raw["smoke-with-trigger"]["poison-cloud"])
if mods["angelsbioprocessing"] then
local neurotoxincloud=table.deepcopy(data.raw["smoke-with-trigger"]["poison-cloud"])

neurotoxincloud.name="neurotoxin-cloud"
neurotoxincloud.action =
{
type = "direct",
action_delivery =
neurotoxincloud.name="neurotoxin-cloud"
neurotoxincloud.action =
{
type = "instant",
target_effects =
type = "direct",
action_delivery =
{
type = "nested-result",
action =
type = "instant",
target_effects =
{
type = "area",
radius = 16,--poison cloud has radius = 11,
entity_flags = {"breaths-air"},
action_delivery =
type = "nested-result",
action =
{
type = "instant",
target_effects =
type = "area",
radius = 16,--poison cloud has radius = 11,
entity_flags = {"breaths-air"},
action_delivery =
{
type = "damage",
damage = { amount = 20, type = "poison"}--poison cloud has damage = { amount = 8, type = "poison"}
type = "instant",
target_effects =
{
type = "damage",
damage = { amount = 20, type = "poison"}--poison cloud has damage = { amount = 8, type = "poison"}
}
}
}
}
}
}
}
neurotoxincloud.particle_spread={ 4.5 * 1.05, 4.5 * 0.6 * 1.05 }
neurotoxincloud.particle_count=30
neurotoxincloud.created_effect = {
{
action_delivery = {
target_effects = {
entity_name = "poison-cloud-visual-dummy",
initial_height = 0,
show_in_tooltip = false,
type = "create-smoke"
neurotoxincloud.particle_spread={ 4.5 * 1.05, 4.5 * 0.6 * 1.05 }
neurotoxincloud.particle_count=30
neurotoxincloud.created_effect = {
{
action_delivery = {
target_effects = {
entity_name = "poison-cloud-visual-dummy",
initial_height = 0,
show_in_tooltip = false,
type = "create-smoke"
},
type = "instant"
},
type = "instant"
cluster_count = 15,--10,
distance = 7,--4,
distance_deviation = 5,
type = "cluster"
},
cluster_count = 15,--10,
distance = 7,--4,
distance_deviation = 5,
type = "cluster"
{
action_delivery = {
target_effects = {
entity_name = "poison-cloud-visual-dummy",
initial_height = 0,
show_in_tooltip = false,
type = "create-smoke"
},
type = "instant"
},
cluster_count = 15,--11,
distance = 15,--8.8000000000000007,
distance_deviation = 3, --2,
type = "cluster"
}
},
data:extend({neurotoxincloud})
data:extend(
{
{
action_delivery = {
target_effects = {
entity_name = "poison-cloud-visual-dummy",
initial_height = 0,
show_in_tooltip = false,
type = "create-smoke"
},
type = "instant"
type = "projectile",
name = "neurotoxin-capsule",
flags = {"not-on-map"},
acceleration = 0.005,
action =
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects =
{
type = "create-entity",
show_in_tooltip = true,
entity_name = "neurotoxin-cloud",
initial_height = 0
},
{
type = "create-particle",
particle_name = "poison-capsule-metal-particle",
repeat_count = 8,
initial_height = 1,
initial_vertical_speed = 0.1,
initial_vertical_speed_deviation = 0.05,
offset_deviation = {{-0.1, -0.1}, {0.1, 0.1}},
speed_from_center = 0.05,
speed_from_center_deviation = 0.01
}
}
},
cluster_count = 15,--11,
distance = 15,--8.8000000000000007,
distance_deviation = 3, --2,
type = "cluster"
}
},
data:extend({neurotoxincloud})
data:extend(
{
{
type = "projectile",
name = "neurotoxin-capsule",
flags = {"not-on-map"},
acceleration = 0.005,
action =
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects =
{
type = "create-entity",
show_in_tooltip = true,
entity_name = "neurotoxin-cloud",
initial_height = 0
},
{
type = "create-particle",
particle_name = "poison-capsule-metal-particle",
repeat_count = 8,
initial_height = 1,
initial_vertical_speed = 0.1,
initial_vertical_speed_deviation = 0.05,
offset_deviation = {{-0.1, -0.1}, {0.1, 0.1}},
speed_from_center = 0.05,
speed_from_center_deviation = 0.01
}
}
},
light = {intensity = 0.5, size = 4},
animation =
{
filename = "__base__/graphics/entity/poison-capsule/poison-capsule.png",
frame_count = 16,
line_length = 8,
animation_speed = 0.250,
width = 29,
height = 29,
shift = util.by_pixel(1, 0.5),
priority = "high",
hr_version =
{
filename = "__base__/graphics/entity/poison-capsule/hr-poison-capsule.png",
frame_count = 16,
line_length = 8,
animation_speed = 0.250,
width = 58,
height = 59,
shift = util.by_pixel(1, 0.5),
priority = "high",
scale = 0.5
}
light = {intensity = 0.5, size = 4},
animation =
{
filename = "__base__/graphics/entity/poison-capsule/poison-capsule.png",
frame_count = 16,
line_length = 8,
animation_speed = 0.250,
width = 29,
height = 29,
shift = util.by_pixel(1, 0.5),
priority = "high",
hr_version =
{
filename = "__base__/graphics/entity/poison-capsule/hr-poison-capsule.png",
frame_count = 16,
line_length = 8,
animation_speed = 0.250,
width = 58,
height = 59,
shift = util.by_pixel(1, 0.5),
priority = "high",
scale = 0.5
}

},
shadow =
{
filename = "__base__/graphics/entity/poison-capsule/poison-capsule-shadow.png",
frame_count = 16,
line_length = 8,
animation_speed = 0.250,
width = 27,
height = 21,
shift = util.by_pixel(1, 2),
priority = "high",
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/poison-capsule/hr-poison-capsule-shadow.png",
frame_count = 16,
line_length = 8,
animation_speed = 0.250,
width = 54,
height = 42,
shift = util.by_pixel(1, 2),
priority = "high",
draw_as_shadow = true,
scale = 0.5
}
},
smoke =
{
{
name = "poison-capsule-smoke",
deviation = {0.15, 0.15},
frequency = 1,
position = {0, 0},
starting_frame = 3,
starting_frame_deviation = 5,
starting_frame_speed_deviation = 5
}
}
},
}
)
},
shadow =
{
filename = "__base__/graphics/entity/poison-capsule/poison-capsule-shadow.png",
frame_count = 16,
line_length = 8,
animation_speed = 0.250,
width = 27,
height = 21,
shift = util.by_pixel(1, 2),
priority = "high",
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/poison-capsule/hr-poison-capsule-shadow.png",
frame_count = 16,
line_length = 8,
animation_speed = 0.250,
width = 54,
height = 42,
shift = util.by_pixel(1, 2),
priority = "high",
draw_as_shadow = true,
scale = 0.5
}
},
smoke =
{
{
name = "poison-capsule-smoke",
deviation = {0.15, 0.15},
frequency = 1,
position = {0, 0},
starting_frame = 3,
starting_frame_deviation = 5,
starting_frame_speed_deviation = 5
}
}
},
}
)
end
Loading

0 comments on commit a0546a8

Please sign in to comment.