Skip to content

Commit

Permalink
Reset inventory when restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
DrLancer-X committed Jul 15, 2021
1 parent da4f634 commit b818c22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ void initPdata()
gs.pl[i].hp = gs.pl[i].maxhp;
gs.pl[i].mp = gs.pl[i].maxmp;
}

for (int i = 0; i < INV_MAX; i++) {
gs.equip_qty[i] = 0;
gs.gem_qty[i] = 0;
}
for (int i = 0; i < PLOT_MAX; i++) {
gs.plot[i] = 0;
}
Expand Down

0 comments on commit b818c22

Please sign in to comment.