mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Added Entity build event autofill
- Added autofill on entity placement; - Added nice flying text; - Fixed ability to insert more of a item than the stacksize allows;
This commit is contained in:
@@ -2,44 +2,92 @@
|
||||
-- @config Autofill
|
||||
|
||||
return {
|
||||
-- General config
|
||||
icon = 'item/piercing-rounds-magazine', --- @setting icon that will be used for the toolbar
|
||||
default_settings = {
|
||||
{
|
||||
type = 'ammo',
|
||||
item = 'uranium-rounds-magazine',
|
||||
amount = 100,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'ammo',
|
||||
item = 'piercing-rounds-magazine',
|
||||
amount = 100,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'ammo',
|
||||
item = 'firearm-magazine',
|
||||
amount = 100,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'fuel',
|
||||
item = 'nuclear-fuel',
|
||||
amount = 100,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'fuel',
|
||||
item = 'solid-fuel',
|
||||
amount = 100,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'fuel',
|
||||
item = 'coal',
|
||||
amount = 100,
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
-- General config
|
||||
icon = 'item/piercing-rounds-magazine', --- @setting icon that will be used for the toolbar
|
||||
entities = {
|
||||
['car'] = {
|
||||
{
|
||||
type = 'fuel',
|
||||
inventory = defines.inventory.fuel,
|
||||
enabled = true
|
||||
},
|
||||
{
|
||||
type = 'ammo',
|
||||
inventory = defines.inventory.car_ammo,
|
||||
enabled = true
|
||||
}
|
||||
},
|
||||
['locomotive'] = {
|
||||
{
|
||||
type = 'fuel',
|
||||
inventory = defines.inventory.fuel,
|
||||
enabled = true
|
||||
}
|
||||
},
|
||||
['tank'] = {
|
||||
{
|
||||
type = 'fuel',
|
||||
inventory = defines.inventory.fuel,
|
||||
enabled = true
|
||||
}
|
||||
},
|
||||
['gun-turret'] = {
|
||||
{
|
||||
type = 'ammo',
|
||||
inventory = defines.inventory.turret_ammo,
|
||||
enabled = true
|
||||
}
|
||||
}
|
||||
},
|
||||
default_settings = {
|
||||
{
|
||||
type = 'ammo',
|
||||
inventories = {defines.inventory.car_ammo, defines.inventory.turret_ammo},
|
||||
item = 'uranium-rounds-magazine',
|
||||
amount = 10,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'ammo',
|
||||
inventories = {defines.inventory.car_ammo, defines.inventory.turret_ammo},
|
||||
item = 'piercing-rounds-magazine',
|
||||
amount = 10,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'ammo',
|
||||
inventories = {defines.inventory.car_ammo, defines.inventory.turret_ammo},
|
||||
item = 'firearm-magazine',
|
||||
amount = 10,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'fuel',
|
||||
inventories = {defines.inventory.fuel},
|
||||
item = 'nuclear-fuel',
|
||||
amount = 1,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'fuel',
|
||||
inventories = {defines.inventory.fuel},
|
||||
item = 'rocket-fuel',
|
||||
amount = 10,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'fuel',
|
||||
inventories = {defines.inventory.fuel},
|
||||
item = 'solid-fuel',
|
||||
amount = 10,
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
type = 'fuel',
|
||||
inventories = {defines.inventory.fuel},
|
||||
item = 'coal',
|
||||
amount = 10,
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user