Skip to content

Commit

Permalink
Fix: SotreItem 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdvlf2880 committed Nov 12, 2023
1 parent a901115 commit 704674d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion res/DataBase
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"AAA":{"Money":8,"StoreItem":{"MoveSpeed":false,"ShotSpeed":false,"BonusLife":false},"Setting":{"Volume":0.0,"IsMute":false,"KeySetting_1p":[37,39,38,40,10],"KeySetting_2p":[65,68,87,83,32]},"Achievement":{"LUCKY_GUY":false,"GAME_ACE":false,"SOUL_MATES":false,"BUDDY_FXXKER":false,"PAT_AND_MAT":false,"ADVENTURE_START":true,"DEADLY_ACCURACY":false,"AVIOPHOBIA":false,"SHARP_SHOOTER":false,"UNLUCKY_GUY":false}},"Scores":{"Scores_1p":[{"name":"AAA","value":660},{"name":"AAA","value":120},{"name":"ZAA","value":0},{"name":"YAA","value":0},{"name":"YAA","value":0},{"name":"YAA","value":0},{"name":"AAA","value":0},{"name":"AAA","value":0},{"name":"AAA","value":0},{"name":"AAA","value":0}],"Scores_2p":[{"name":"AAA","value":120},{"name":"AAA","value":120},{"name":"AAA","value":60}]},"YAA":{"Money":0,"StoreItem":{"MoveSpeed":false,"ShotSpeed":false,"BonusLife":false},"Setting":{"Volume":0,"IsMute":false,"KeySetting_1p":[0,1,2,3,4],"KeySetting_2p":[8,9,10,11,12]},"Achievement":{"LUCKY_GUY":false,"GAME_ACE":false,"SOUL_MATES":false,"BUDDY_FXXKER":false,"PAT_AND_MAT":false,"ADVENTURE_START":true,"DEADLY_ACCURACY":false,"AVIOPHOBIA":false,"SHARP_SHOOTER":false,"UNLUCKY_GUY":false}},"ZAA":{"Money":0,"StoreItem":{"MoveSpeed":false,"ShotSpeed":false,"BonusLife":false},"Setting":{"Volume":0,"IsMute":false,"KeySetting_1p":[0,1,2,3,4],"KeySetting_2p":[8,9,10,11,12]},"Achievement":{"LUCKY_GUY":false,"GAME_ACE":false,"SOUL_MATES":false,"BUDDY_FXXKER":false,"PAT_AND_MAT":false,"ADVENTURE_START":true,"DEADLY_ACCURACY":false,"AVIOPHOBIA":false,"SHARP_SHOOTER":false,"UNLUCKY_GUY":false}}}
{"AAA":{"Money":5,"StoreItem":{"MoveSpeed":true,"ShotSpeed":false,"BonusLife":false},"Setting":{"Volume":0.0,"IsMute":false,"KeySetting_1p":[37,39,38,40,10],"KeySetting_2p":[65,68,87,83,32]},"Achievement":{"LUCKY_GUY":false,"GAME_ACE":false,"SOUL_MATES":false,"BUDDY_FXXKER":false,"PAT_AND_MAT":false,"ADVENTURE_START":true,"DEADLY_ACCURACY":false,"AVIOPHOBIA":false,"SHARP_SHOOTER":true,"UNLUCKY_GUY":false}},"Scores":{"Scores_1p":[{"name":"AAA","value":660},{"name":"AAA","value":660},{"name":"AAA","value":180},{"name":"AAA","value":120},{"name":"ZAA","value":0},{"name":"YAA","value":0},{"name":"YAA","value":0},{"name":"YAA","value":0},{"name":"AAA","value":0},{"name":"AAA","value":0}],"Scores_2p":[{"name":"AAA","value":120},{"name":"AAA","value":120},{"name":"AAA","value":60}]},"YAA":{"Money":0,"StoreItem":{"MoveSpeed":false,"ShotSpeed":false,"BonusLife":false},"Setting":{"Volume":0,"IsMute":false,"KeySetting_1p":[0,1,2,3,4],"KeySetting_2p":[8,9,10,11,12]},"Achievement":{"LUCKY_GUY":false,"GAME_ACE":false,"SOUL_MATES":false,"BUDDY_FXXKER":false,"PAT_AND_MAT":false,"ADVENTURE_START":true,"DEADLY_ACCURACY":false,"AVIOPHOBIA":false,"SHARP_SHOOTER":false,"UNLUCKY_GUY":false}},"ZAA":{"Money":0,"StoreItem":{"MoveSpeed":false,"ShotSpeed":false,"BonusLife":false},"Setting":{"Volume":0,"IsMute":false,"KeySetting_1p":[0,1,2,3,4],"KeySetting_2p":[8,9,10,11,12]},"Achievement":{"LUCKY_GUY":false,"GAME_ACE":false,"SOUL_MATES":false,"BUDDY_FXXKER":false,"PAT_AND_MAT":false,"ADVENTURE_START":true,"DEADLY_ACCURACY":false,"AVIOPHOBIA":false,"SHARP_SHOOTER":false,"UNLUCKY_GUY":false}}}
2 changes: 1 addition & 1 deletion src/GamePrime/Page/StorePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void PreUpdate() {
JSONObject item = (JSONObject) gm.GlobalData.get("LocalData").get("StoreItem");
if (money >= price && !(boolean) item.get(name)) {
money = money - price;
((JSONObject) (gm.GlobalData.get("LocalData").get("Item"))).put(name, true);
((JSONObject) (gm.GlobalData.get("LocalData").get("StoreItem"))).put(name, true);
gm.GlobalData.get("LocalData").put("Money", money);
item.put(name, true);
gm.Sm.playSound(menuSoundProp);
Expand Down

0 comments on commit 704674d

Please sign in to comment.