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

Outsourced config.sk into seperate configurations #127

Merged
merged 21 commits into from
Jan 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a0d38d8
Outsourced upgrade configuration from config.sk
Abwasserrohr Jan 30, 2019
0ec0fe8
Outsourced config.sk into multiple files
Abwasserrohr Jan 30, 2019
e20a35e
Outsourced config.sk into multiple files
Abwasserrohr Jan 30, 2019
ba1692f
Outsourced config.sk into multiple files
Abwasserrohr Jan 30, 2019
e481968
Outsourced config.sk into multiple files
Abwasserrohr Jan 30, 2019
18a8ffa
Outsourced config.sk into multiple files
Abwasserrohr Jan 30, 2019
9d296f6
Outsourced config.sk into multiple files
Abwasserrohr Jan 30, 2019
234e42c
First load config files
Abwasserrohr Jan 30, 2019
564380e
Balanced challenges out to make it easier by default
Abwasserrohr Jan 30, 2019
f298f12
Balanced island size upgrades to make it easier by default
Abwasserrohr Jan 30, 2019
4534327
Reduced the starting size of islands to make upgrades more powerful
Abwasserrohr Jan 30, 2019
2cc3c4e
Delete most variables now directly in the configurations
Abwasserrohr Jan 30, 2019
1bf2317
Deletes and loads variables now by itself
Abwasserrohr Jan 30, 2019
96abd17
Deletes and loads variables now by itself
Abwasserrohr Jan 30, 2019
d1f5d4b
Deletes and loads variables now by itself
Abwasserrohr Jan 30, 2019
c2133ef
Loads variables now by itself
Abwasserrohr Jan 30, 2019
0afda75
Loads challenges now by itself
Abwasserrohr Jan 30, 2019
9ad0441
Renamed and moved config.sk to config/core.sk
Abwasserrohr Jan 30, 2019
0ea15f9
Removed loading functions
Abwasserrohr Jan 30, 2019
efaeaf9
Island upgrades are now within a yaml configuration
Abwasserrohr Jan 30, 2019
78c60de
Load upgrades.yml as variables
Abwasserrohr Jan 30, 2019
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
26 changes: 17 additions & 9 deletions SkyBlock/SKYBLOCK.SK/Functions/loadconfig.sk
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@
# > Actions:
# > This deletes variables to prevent old variables from being in the system
function loadconfig():
delete {SB::schematics::*}
delete {SB::calcdown::*}
delete {SB::oregenc::*}
delete {SB::oregen::*}
delete {SB::config::biome::menuitem::*}
delete {SB::config::biome::biomename::*}
delete {SB::config::biome::price::*}
loop {SB::config::biome::lang::*}:
delete {SB::config::biome::lang::%loop-index%::*}
delete {SB::config::biome::lang::*}
#
# > Load configuration for "SkyBlock/config/upgrades.yml".
# > Loops through all lists that are added to this local list.
add "islandsizes", "islandhomes", "islandhoppers" to {_load::*}
loop {_load::*}:
#
# > Get all upgrades for this yaml list and loop through it and set it as variable.
set {_isupgrades::*} to yaml list "%loop-value%" from "plugins/Skript/scripts/SkyBlock/config/upgrades.yml"
loop {_isupgrades::*}:
set {_loopvalue} to "%loop-value-2%"
replace all "{" with "" in {_loopvalue}
replace all "}" with "" in {_loopvalue}
set {_loopvalue::*} to {_loopvalue} split at "="
set {_loopvalue::2} to {_loopvalue::2} parsed as number
#
# > Save the extracted list values as variable.
set {SB::config::%{_loopvalue::1}%} to {_loopvalue::2}
1 change: 1 addition & 0 deletions SkyBlock/SKYBLOCK.SK/Functions/reloadskyblocksk.sk
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ on skript load:
# > Actions:
# > Reloads the files of SKYBLOCK.SK in the right order.
function reloadskyblocksk(i:integer):
make console execute "/sk reload SkyBlock/config/"
make console execute "/sk reload SkyBlock/"
Loading