mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Update runner_functions.js
This commit is contained in:
@@ -1,10 +1,25 @@
|
||||
var character=parent.character;
|
||||
|
||||
function get_socket()
|
||||
{
|
||||
return parent.socket;
|
||||
}
|
||||
|
||||
function get_map()
|
||||
{
|
||||
return parent.G.maps[parent.current_map];
|
||||
}
|
||||
|
||||
function set_message(text)
|
||||
{
|
||||
$('#gg').html(text);
|
||||
}
|
||||
|
||||
function get_target()
|
||||
{
|
||||
return parent.target;
|
||||
}
|
||||
|
||||
function get_targeted_monster()
|
||||
{
|
||||
if(parent.ctarget && !parent.ctarget.dead && parent.ctarget.type=='monster') return parent.ctarget;
|
||||
@@ -46,6 +61,11 @@ function move(x,y)
|
||||
parent.socket.emit("move",{x:character.real_x,y:character.real_y,going_x:character.going_x,going_y:character.going_y});
|
||||
}
|
||||
|
||||
function show_json(e)
|
||||
{
|
||||
parent.show_json(parent.game_stringify(e,2));
|
||||
}
|
||||
|
||||
function get_nearest_monster(args)
|
||||
{
|
||||
var min_d=999999,target=null;
|
||||
|
||||
Reference in New Issue
Block a user