Skip to content

Commit 795f2e7

Browse files
committed
Rename infiniteSky to infinite-sky for naming consistency
1 parent 466f146 commit 795f2e7

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

data/base_command_counts.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"gui/mechanisms": 1,
9999
"gui/pathable": 1,
100100
"hotkeys": 1,
101-
"infiniteSky": 1,
101+
"infinite-sky": 1,
102102
"force": 1,
103103
"hermit": 1,
104104
"strangemood": 1,

docs/changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Template for new versions:
5252
# Future
5353

5454
## New Tools
55-
- `infiniteSky`: (reinstated) tool for automatically creating new z-levels of sky
55+
- `infinite-sky`: (reinstated, renamed from ``infiniteSky``) tool for automatically creating new z-levels of sky
5656

5757
## New Features
5858
- `tweak`: ``realistic-melting``: change melting return for inorganic armor parts, shields, weapons, trap components and tools to stop smelters from creating metal, bring melt return for adamantine in line with other metals to ~95% of forging cost. wear reduces melt return by 10% per level

docs/plugins/infiniteSky.rst renamed to docs/plugins/infinite-sky.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
infiniteSky
2-
===========
1+
.. _infinitesky:
2+
3+
infinite-sky
4+
============
35

46
.. dfhack-tool::
57
:summary: Automatically allocate new z-levels of sky.
@@ -12,11 +14,11 @@ at your command.
1214
Usage
1315
-----
1416

15-
``enable infiniteSky``
17+
``enable infinite-sky``
1618
Enables monitoring of constructions. If you build anything in the second
1719
highest z-level, it will allocate one more sky level. You can build stairs
1820
up as high as you like!
19-
``infiniteSky [<n>]``
21+
``infinite-sky [<n>]``
2022
Raise the sky by n z-levels. If run without parameters, raises the sky by
2123
one z-level.
2224

plugins/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ if(BUILD_SUPPORTED)
125125
#dfhack_plugin(generated-creature-renamer generated-creature-renamer.cpp)
126126
dfhack_plugin(getplants getplants.cpp)
127127
dfhack_plugin(hotkeys hotkeys.cpp LINK_LIBRARIES lua)
128-
dfhack_plugin(infiniteSky infiniteSky.cpp LINK_LIBRARIES lua)
128+
dfhack_plugin(infinite-sky infinite-sky.cpp LINK_LIBRARIES lua)
129129
#dfhack_plugin(isoworldremote isoworldremote.cpp PROTOBUFS isoworldremote)
130130
#dfhack_plugin(jobutils jobutils.cpp)
131131
dfhack_plugin(lair lair.cpp)

plugins/infiniteSky.cpp renamed to plugins/infinite-sky.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ using namespace std;
2424
using namespace DFHack;
2525
using namespace df::enums;
2626

27-
DFHACK_PLUGIN("infiniteSky");
27+
DFHACK_PLUGIN("infinite-sky");
2828
DFHACK_PLUGIN_IS_ENABLED(is_enabled);
2929

3030
REQUIRE_GLOBAL(world);
@@ -50,7 +50,7 @@ EventManager::EventHandler handler(plugin_self, constructionEventHandler,0);
5050
DFhackCExport command_result plugin_init(color_ostream &out,
5151
std::vector<PluginCommand> &commands) {
5252
commands.push_back(PluginCommand(
53-
"infiniteSky", "Automatically allocate new z-levels of sky.",
53+
"infinite-sky", "Automatically allocate new z-levels of sky.",
5454
infiniteSky));
5555
return CR_OK;
5656
}
@@ -252,14 +252,14 @@ command_result infiniteSky(color_ostream &out,
252252
}
253253

254254
infinitesky_options opts;
255-
if (!Lua::CallLuaModuleFunction(out, "plugins.infiniteSky",
255+
if (!Lua::CallLuaModuleFunction(out, "plugins.infinite-sky",
256256
"parse_commandline",
257257
std::make_tuple(&opts, parameters)) ||
258258
opts.help)
259259
return CR_WRONG_USAGE;
260260

261261
if (opts.n != 0) {
262-
out.print("InfiniteSky: creating %d new z-level%s of sky.\n", opts.n,
262+
out.print("Infinite-sky: creating %d new z-level%s of sky.\n", opts.n,
263263
opts.n == 1 ? "" : "s");
264264
doInfiniteSky(out, opts.n);
265265
} else {

plugins/lua/infiniteSky.lua renamed to plugins/lua/infinite-sky.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local _ENV = mkmodule('plugins.infiniteSky')
1+
local _ENV = mkmodule('plugins.infinite-sky')
22

33
local argparse = require('argparse')
44

0 commit comments

Comments
 (0)