Skip to content

Commit d6da505

Browse files
committed
Cleaner mod bundle setting
1 parent 21fe51c commit d6da505

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

assets/bundles/bundle.properties

+10-10
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,15 @@ hint.pm-minerControl.mobile = A miner depot can optionally have its [accent]targ
367367
## Mod
368368

369369
mod.prog-mats.author = [#4a6de5]Creator:\n MEEP of Faith[]
370-
mod.prog-mats-contributor.0 = [#4a6de5]ThirstyBoi[] (Eruptor sprite + Masquerade sword)
371-
mod.prog-mats-contributor.1 = [#4a6de5]Goober[] (Kugelblitz and Popeshadow sprites)
372-
mod.prog-mats-contributor.2 = [#4a6de5]Kapzduke[] (Sergeant sprites)
373-
mod.prog-mats-contributor.3 = [#4a6de5]TheMalaysianDude[] (Missile assembler resprite)
374-
mod.prog-mats-contributor.4 = [#4a6de5]BlueWolf[] (Modular Turret bases)
375-
mod.prog-mats-contributor.5 = [#4a6de5]lordReddx[] (RU Translation)
376-
mod.prog-mats-contributor.6 = [#4a6de5]xStaBUx[] (Ukrainian translation)
377-
mod.prog-mats-contributor.7 = [#4a6de5]Prosta4ok_ua[] (Ukrainian translation proofreading)
378-
mod.prog-mats-contributor.8 = Some sounds from [#4a6de5]Freesound[].
379-
mod.prog-mats-contributor.9 =Anyone else I sto- *borrowed* code from.
370+
mod.prog-mats.contributor-0 = [#4a6de5]ThirstyBoi[] (Eruptor sprite + Masquerade sword)
371+
mod.prog-mats.contributor-1 = [#4a6de5]Goober[] (Kugelblitz and Popeshadow sprites)
372+
mod.prog-mats.contributor-2 = [#4a6de5]Kapzduke[] (Sergeant sprites)
373+
mod.prog-mats.contributor-3 = [#4a6de5]TheMalaysianDude[] (Missile assembler resprite)
374+
mod.prog-mats.contributor-4 = [#4a6de5]BlueWolf[] (Modular Turret bases)
375+
mod.prog-mats.contributor-5 = [#4a6de5]lordReddx[] (RU Translation)
376+
mod.prog-mats.contributor-6 = [#4a6de5]xStaBUx[] (Ukrainian translation)
377+
mod.prog-mats.contributor-7 = [#4a6de5]Prosta4ok_ua[] (Ukrainian translation proofreading)
378+
mod.prog-mats.contributor-8 = Some sounds from [#4a6de5]Freesound[].
379+
mod.prog-mats.contributor-9 =Anyone else I sto- *borrowed* code from.
380380
mod.prog-mats.description = A collection of random ideas that come to my head.\n\n[red]REQUIRES `MEEPofFaith/black-hole-renderer` TO RUN. THE GAME WILL CRASH WITHOUT IT INSTALLED.[]
381381
mod.prog-mats.subtitle = The machinations of a madman.

src/progressed/ProgMats.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ public void init(){
5858
if(OS.username.equals("MEEP")) experimental = true;
5959

6060
LoadedMod progM = mods.locateMod("prog-mats");
61-
Func<String, String> getModBundle = value -> bundle.get("mod." + value);
61+
Func<String, String> getModBundle = value -> bundle.get("mod." + progM.meta.name + "." + value);
6262

6363
progM.meta.displayName = "[#4a6de5]" + progM.meta.displayName + "[]";
64-
progM.meta.description = getModBundle.get(progM.meta.name + ".description");
65-
progM.meta.subtitle = getModBundle.get(progM.meta.name + ".subtitle");
64+
progM.meta.description = getModBundle.get("description");
65+
progM.meta.subtitle = getModBundle.get("subtitle");
6666

67-
StringBuilder contributors = new StringBuilder(getModBundle.get(progM.meta.name + ".author"));
67+
StringBuilder contributors = new StringBuilder(getModBundle.get("author"));
6868
contributors.append("\n\n").append("[#4a6de5]Contributors:[]");
6969
int i = 0;
70-
while(bundle.has("mod." + progM.meta.name + "-contributor." + i)){
71-
contributors.append("\n ").append(getModBundle.get(progM.meta.name + "-contributor." + i));
70+
while(bundle.has("mod." + progM.meta.name + ".contributor-" + i)){
71+
contributors.append("\n ").append(getModBundle.get("contributor-" + i));
7272
i++;
7373
}
7474
progM.meta.author = contributors.toString();

0 commit comments

Comments
 (0)