Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ammo and ammo stack size settings #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 3.2.20
Version: 3.3.0
Date: ????
Changes:
Features:
- Added settings for Construction bot and Termite bot ammo size.
- Added settings for Construction bot and Termite bot ammo stack size.
---------------------------------------------------------------------------------------------------
Version: 3.2.19
Date: 2022-04-16
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Nanobots",
"version": "3.2.20",
"version": "3.3.0",
"factorio_version": "1.1",
"title": "Nanobots: Early Bots",
"author": "Nexela",
Expand Down
10 changes: 9 additions & 1 deletion locale/en/settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ nanobots-nano-build-tiles=Nanobots Build Tiles:
nanobots-afk-time=Afk Timer:
nanobots-nano-fullfill-requests=Fullfill Request Proxies:
nanobots-active-emitter-mode=Nano Emitter must be selected:
nanobots-ammo-size-construction=Construction bot ammo size:
nanobots-ammo-size-termite=Termite bot ammo size:
nanobots-ammo-stack-size-construction=Construction ammo stack size:
nanobots-ammo-stack-size-termite=Termite ammo stack size:

[mod-setting-description]
nanobots-nanobots-auto=Nanobot emitter is automatic, Disabling will require shooting nanobots into an area. (Not Available Yet)
Expand All @@ -24,6 +28,10 @@ nanobots-cell-queue-rate=Rate in ticks between checking roboports queued by the
nanobots-free-bots-per=Percentage of available construction bots needed for roboport interface to queue actions.
nanobots-equipment-auto=Nano Power armor equipment is automatic, Disabling will require using items to active. (Not Available Yet)
nanobots-nano-build-tiles=Nanobots can be used to build tiles.
nanobots-afk-time=How long in seconds to be afk before nanbots shut down. 0 to never shutdown.
nanobots-afk-time=How long in seconds to be afk before nanobots shut down. 0 to never shutdown.
nanobots-nano-fullfill-requests=Nanobots will attempt to fullfill request proxies.
nanobots-active-emitter-mode=Nano Emitter must be the selected weapon in order for nanobots to operate.
nanobots-ammo-size-construction=Number of construction bots per ammo.
nanobots-ammo-size-termite=Number of termite bots per ammo.
nanobots-ammo-stack-size-construction=Stack size of nanobot construction ammo.
nanobots-ammo-stack-size-termite=Stack size of nanobot termite ammo.
4 changes: 2 additions & 2 deletions prototypes/ammo/constructors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ local constructors = {
name = 'ammo-nano-constructors',
icon = '__Nanobots__/graphics/icons/nano-ammo-constructors.png',
icon_size = 64,
magazine_size = 10,
magazine_size = settings.startup['nanobots-ammo-size-construction'].value, --10
subgroup = 'tool',
order = 'c[automated-construction]-g[gun-nano-emitter]-a-constructors',
stack_size = 100,
stack_size = settings.startup['nanobots-ammo-stack-size-construction'].value, --100
ammo_type = {
category = 'nano-ammo',
target_type = 'position',
Expand Down
4 changes: 2 additions & 2 deletions prototypes/ammo/termites.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ local termites = {
name = 'ammo-nano-termites',
icon = '__Nanobots__/graphics/icons/nano-ammo-termites.png',
icon_size = 64,
magazine_size = 20, --20
magazine_size = settings.startup['nanobots-ammo-size-termite'].value, --20
subgroup = 'tool',
order = 'c[automated-construction]-g[gun-nano-emitter]-d-termites',
stack_size = 100, --100
stack_size = settings.startup['nanobots-ammo-stack-size-termite'].value, --100
ammo_type = {
category = 'nano-ammo',
target_type = 'position',
Expand Down
38 changes: 37 additions & 1 deletion settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,41 @@ data:extend{
maximum_value = 100,
minimum_value = 1,
order = "nanobots-fb[free-bots-per]"
}
},
{
type = "int-setting",
name = "nanobots-ammo-size-construction",
setting_type = "startup",
default_value = 10,
maximum_value = 1000,
minimum_value = 1,
order = "nanobots-as[construction]"
},
{
type = "int-setting",
name = "nanobots-ammo-size-termite",
setting_type = "startup",
default_value = 20,
maximum_value = 1000,
minimum_value = 1,
order = "nanobots-as[termite]"
},
{
type = "int-setting",
name = "nanobots-ammo-stack-size-construction",
setting_type = "startup",
default_value = 100,
maximum_value = 1000,
minimum_value = 1,
order = "nanobots-as[construction]"
},
{
type = "int-setting",
name = "nanobots-ammo-stack-size-termite",
setting_type = "startup",
default_value = 100,
maximum_value = 1000,
minimum_value = 1,
order = "nanobots-as[termite]"
},
}