Skip to content
Snippets Groups Projects
Commit 1224247b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use `p01 not the player experience field for experience.

parent 1ce8218e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -837,14 +837,14 @@ menu('`r0`c `r1 `%LORD II: CONFIGURE JS `r0', true, [
dk.console.cleareol();
ctx.opts = options();
}},
{text:' `2(`%D`2) Experience : `%'+pretty_int(player.experience)+'`r0`2', shortcut:'D', callback:function(ctx) {
{text:' `2(`%D`2) Experience : `%'+pretty_int(player.p[0])+'`r0`2', shortcut:'D', callback:function(ctx) {
dk.console.gotoxy(26, 6);
conio.setcursortype(2);
player.experience = parseInt(dk.console.getstr({edit:player.experience.toString(), crlf:false, input_box:true, select:false, attr:new Attribute(31), len:10, integer:true, min:0, max:2147483647}), 10);
player.p[0] = parseInt(dk.console.getstr({edit:player.p[0].toString(), crlf:false, input_box:true, select:false, attr:new Attribute(31), len:10, integer:true, min:0, max:2147483647}), 10);
conio.setcursortype(0);
dk.console.gotoxy(26, 6);
dk.console.attr.value = 2;
lw(pretty_int(player.experience));
lw(pretty_int(player.p[0]));
dk.console.cleareol();
ctx.opts = options();
}},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment