T53JH5GFABPQXENOAMN2C2FAMALAMUAMWNEMGKRSO2YEYALLB3TAC static int _you_gold(lua_State *ls){if (lua_gettop(ls) >= 1){ASSERT_DLUA;const int new_gold = luaL_checkint(ls, 1);const int old_gold = you.gold;you.gold = std::max(new_gold, 0);if (new_gold > old_gold)you.attribute[ATTR_GOLD_FOUND] += new_gold - old_gold;else if (old_gold > new_gold)you.attribute[ATTR_MISC_SPENDING] += old_gold - new_gold;}PLUARET(number, you.gold);}
}static int _you_uniques(lua_State *ls){bool unique_found = false;if (lua_gettop(ls) >= 1 && lua_isstring(ls, 1))unique_found = you.unique_creatures[get_monster_by_name(lua_tostring(ls, 1))];lua_pushboolean(ls, unique_found);return (1);}static int _you_gold(lua_State *ls){if (lua_gettop(ls) >= 1){const int new_gold = luaL_checkint(ls, 1);const int old_gold = you.gold;you.gold = std::max(new_gold, 0);if (new_gold > old_gold)you.attribute[ATTR_GOLD_FOUND] += new_gold - old_gold;else if (old_gold > new_gold)you.attribute[ATTR_MISC_SPENDING] += old_gold - new_gold;}PLUARET(number, you.gold);
{ "hear_pos", you_can_hear_pos },{ "x_pos", you_x_pos },{ "y_pos", you_y_pos },{ "pos", you_pos },{ "moveto", you_moveto },{ "see_cell", you_see_cell },{ "see_cell_no_trans", you_see_cell_no_trans },{ "random_teleport", you_random_teleport },{ "losight", you_losight },
{ "hear_pos", you_can_hear_pos },{ "x_pos", you_x_pos },{ "y_pos", you_y_pos },{ "pos", you_pos },{ "moveto", you_moveto },{ "see_cell", you_see_cell },{ "see_cell_no_trans", you_see_cell_no_trans },{ "random_teleport", you_random_teleport },{ "losight", you_losight },{ "gold", _you_gold },{ "uniques", _you_uniques },