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

Replace & vars in @fight strings as well.

(More issues with rape)
parent 33f4154a
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
// TODO: More optimal horizontal lightbars // TODO: More optimal horizontal lightbars
// TODO: Save player after changes in case process crashes // TODO: Save player after changes in case process crashes
// TODO: run NOTIME in HELP.REF on idle timeout
// TODO: Detect disconnections better // TODO: Detect disconnections better
// TODO: Move other players on screen during battles?
js.yield_interval = 0; js.yield_interval = 0;
js.load_path_list.unshift(js.exec_dir+"dorkit/"); js.load_path_list.unshift(js.exec_dir+"dorkit/");
...@@ -1024,13 +1022,13 @@ function run_ref(sec, fname) ...@@ -1024,13 +1022,13 @@ function run_ref(sec, fname)
if (l.length < 2 || l[0].toUpperCase() === 'NONE' || l[1].toUpperCase() === 'NONE') if (l.length < 2 || l[0].toUpperCase() === 'NONE' || l[1].toUpperCase() === 'NONE')
return; return;
enemy.attacks.push({strength:parseInt(getvar(l[1]), 10), hitaction:getvar(l[0])}); enemy.attacks.push({strength:parseInt(getvar(l[1]), 10), hitaction:replace_svars(getvar(l[0])}));
} }
enemy = { enemy = {
name:getvar(l[0]), name:getvar(l[0]),
see:getvar(l[1]), see:replace_svars(getvar(l[1])),
killstr:getvar(l[2]), killstr:replace_svars(getvar(l[2])),
sex:parseInt(getvar(l[3]), 10), sex:parseInt(getvar(l[3]), 10),
defence:parseInt(getvar(l[9]), 10), defence:parseInt(getvar(l[9]), 10),
gold:parseInt(getvar(l[10]), 10), gold:parseInt(getvar(l[10]), 10),
...@@ -3274,7 +3272,6 @@ function online_battle(op, attack_first) { ...@@ -3274,7 +3272,6 @@ function online_battle(op, attack_first) {
if (player.p[1] < 1) { if (player.p[1] < 1) {
player.p[1] = 0; player.p[1] = 0;
player.put(); player.put();
// TODO: Dead notification, etc...
run_ref('die', 'gametxt.ref'); run_ref('die', 'gametxt.ref');
ret = 'LOST'; ret = 'LOST';
doneBattle = true; doneBattle = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment