Skip to content

Commit 5c6b901

Browse files
authored
Merge pull request #127 from TML233/upgrade
Replace string files with JSON format
2 parents bcebe8b + 001ab60 commit 5c6b901

13 files changed

Lines changed: 141 additions & 154 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
./string/battle.txt
2-
./string/ui.txt
3-
./string/item.txt
4-
./string/menu.txt
5-
./string/font.txt
1+
./string/battle.json
2+
./string/ui.json
3+
./string/item.json
4+
./string/menu.json
5+
./string/font.json
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"battle.menu.mercy.spare": "* Spare",
3+
"battle.menu.mercy.flee": "* Flee",
4+
"battle.result.won": "* You WON!&* You earned {insert EXP} EXP and {insert GOLD} GOLD.",
5+
"battle.result.fled.0": "* Escaped...",
6+
"battle.result.fled.1": "* I'm outta here.",
7+
"battle.result.fled.2": "* I've got better to do.",
8+
"battle.result.fled.3": "* Don't slow me down.",
9+
"battle.result.fled.reward": "* Ran away with {insert EXP} EXP& and {insert GOLD} GOLD.",
10+
"battle.result.lv_up": "* Your LOVE increased."
11+
}

datafiles/locale/english/string/battle.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"font.dialog.0": "determination_mono",
3+
"font.dialog.0.scale.x": "1",
4+
"font.dialog.0.scale.y": "1",
5+
"font.dialog.0.space.x": "0",
6+
"font.dialog.1": "determination_mono",
7+
"font.dialog.1.scale.x": "1",
8+
"font.dialog.1.scale.y": "1",
9+
"font.dialog.1.space.x": "0",
10+
"font.dialog.space.y": "0",
11+
12+
"font.menu.0": "determination_sans",
13+
"font.menu.0.scale.x": "1",
14+
"font.menu.0.scale.y": "1",
15+
"font.menu.0.space.x": "0",
16+
"font.menu.1": "determination_sans",
17+
"font.menu.1.scale.x": "1",
18+
"font.menu.1.scale.y": "1",
19+
"font.menu.1.space.x": "0",
20+
"font.menu.space.y": "0",
21+
22+
"font.battle.0": "dotumche",
23+
"font.battle.0.scale.x": "1",
24+
"font.battle.0.scale.y": "1",
25+
"font.battle.0.space.x": "0",
26+
"font.battle.1": "dotumche",
27+
"font.battle.1.scale.x": "1",
28+
"font.battle.1.scale.y": "1",
29+
"font.battle.1.space.x": "0",
30+
"font.battle.space.y": "0"
31+
}

datafiles/locale/english/string/font.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"item.eat": "* You ate the {insert ITEM}.",
3+
"item.equip": "* You equiped the {insert ITEM}.",
4+
"item.heal.part": "* You recovered {insert HP} HP!",
5+
"item.heal.all": "* Your HP was maxed out.",
6+
7+
"item.drop.0": "* The {insert ITEM} was& thrown away.",
8+
"item.drop.1": "* You bid a quiet farewell& to the {insert ITEM}.",
9+
"item.drop.2": "* You put the {insert ITEM}& on the ground and gave it a& little pat.",
10+
"item.drop.3": "* You threw the {insert ITEM}& on the ground like the piece& of trash it is.",
11+
"item.drop.4": "* You abandoned the & {insert ITEM}.",
12+
13+
"item.stick.name": "Stick",
14+
"item.stick.info": "* Stick - Weapon AT 0&* Its bark is worse than& its bite.",
15+
"item.stick.use": "* You threw the stick away.{sleep 20}&* Then picked it back up.",
16+
17+
"item.bandage.name": "Bandage",
18+
"item.bandage.info": "* Bandage - Heals 10 HP&* It has already been used& several times.",
19+
"item.bandage.use.0": "* You re-applied the bandage.",
20+
"item.bandage.use.1": "* Still kind of gooey.",
21+
22+
"item.toy_knife.name": "Toy Knife",
23+
"item.toy_knife.info": "* Toy Knife - Weapon AT 3&* Made of plastic.&* A rarity nowadays.",
24+
25+
"item.faded_ribbon.name": "Faded Ribbon",
26+
"item.faded_ribbon.name.short": "Ribbon",
27+
"item.faded_ribbon.info": "* Faded Ribbon - Armor DF 3&* If you're cuter,{sleep 20} monsters& won't hit you as hard."
28+
}

datafiles/locale/english/string/item.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"menu.begin": "Begin Game",
3+
"menu.settings": "Settings",
4+
"menu.continue": "Continue",
5+
"menu.reset": "Reset",
6+
"menu.reset.true": "True Reset",
7+
8+
"menu.naming.title": "Name the fallen human.",
9+
"menu.naming.quit": "Quit",
10+
"menu.naming.backspace": "Backspace",
11+
"menu.naming.done": "Done",
12+
13+
"menu.confirm.title": "Is this name correct?",
14+
"menu.confirm.title.reset": "A name has already&been chosen.",
15+
"menu.confirm.title.aaaaaa": "Not very creative...?",
16+
"menu.confirm.title.alphys": "D-don't do that.",
17+
"menu.confirm.title.alphy": "Uh.... OK?",
18+
"menu.confirm.title.asgore": "You cannot.",
19+
"menu.confirm.title.toriel": "I think you should&think of your own&name, my child.",
20+
"menu.confirm.title.asriel": "...",
21+
"menu.confirm.title.flowey": "I already CHOSE&that name.",
22+
"menu.confirm.title.sans": "nope.",
23+
"menu.confirm.title.papyru": "I'LL ALLOW IT!!!!",
24+
"menu.confirm.title.undyne": "Get your OWN name!",
25+
"menu.confirm.title.mtt": "OOOOH!!! ARE YOU&PROMOTING MY BRAND?",
26+
"menu.confirm.title.chara": "The true name."
27+
}

datafiles/locale/english/string/menu.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"ui.menu.item": "ITEM",
3+
"ui.menu.item.use": "USE",
4+
"ui.menu.item.info": "INFO",
5+
"ui.menu.item.drop": "DROP",
6+
7+
"ui.menu.stat": "STAT",
8+
"ui.menu.stat.0": "\"{insert NAME}\"{space_y -1}&&{space_y 0}LV {insert LV}&HP {insert HP} / {insert HP_MAX}&&AT {insert ATK} ({insert ATK_ITEM})&DF {insert DEF} ({insert DEF_ITEM}){space_y -1}&&{space_y 0}WEAPON: {insert WEAPON}&ARMOR: {insert ARMOR}{space_y 4}&{space_y 0}GOLD: {insert GOLD}",
9+
"ui.menu.stat.1": "EXP: {insert EXP}&NEXT: {insert EXP_NEXT}",
10+
"ui.menu.stat.2": "{space_y -1}&&{space_y 0}&{space_y 4}&{space_y 0}KILLS: {insert KILLS}",
11+
12+
"ui.menu.phone": "CELL",
13+
14+
"ui.save.name.empty": "EMPTY",
15+
"ui.save.save": "Save",
16+
"ui.save.return": "Return",
17+
"ui.save.saved": "File Saved.",
18+
19+
"ui.box.inventory": "INVENTORY",
20+
"ui.box.box": "BOX",
21+
"ui.box.finish": "Press [X] to finish"
22+
}

0 commit comments

Comments
 (0)