Skip to content

Commit

Permalink
Export some more Creature function to Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
BevapDin committed Jun 3, 2015
1 parent 7541598 commit 2f42cea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lua/class_definitions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ classes = {
{ name = "check_dead_state", rval = nil, args = { } },
{ name = "clear_effects", rval = nil, args = { } },
{ name = "deal_melee_attack", rval = "int", args = { "Creature", "int" } },
{ name = "die", rval = nil, args = { "Creature" } },
{ name = "digging", rval = "bool", args = { } },
{ name = "disp_name", rval = "string", args = { "bool" } },
{ name = "disp_name", rval = "string", args = { } },
Expand Down Expand Up @@ -1103,14 +1104,24 @@ classes = {
{ name = "has_effect", rval = "bool", args = { "string" } },
{ name = "has_effect", rval = "bool", args = { "string", "body_part" } },
{ name = "has_trait", rval = "bool", args = { "string" } },
{ name = "has_weapon", rval = "bool", args = { } },
{ name = "hit_roll", rval = "int", args = { } },
{ name = "hp_percentage", rval = "int", args = { } },
{ name = "in_sleep_state", rval = "bool", args = { } },
{ name = "is_dead_state", rval = "bool", args = { } },
{ name = "is_elec_immune", rval = "bool", args = { } },
{ name = "is_fake", rval = "bool", args = { } },
{ name = "is_hallucination", rval = "bool", args = { } },
{ name = "is_immune", rval = "bool", args = { "string" } },
{ name = "is_immune_effect", rval = "bool", args = { "string" } },
{ name = "is_monster", rval = "bool", args = { } },
{ name = "is_npc", rval = "bool", args = { } },
{ name = "is_on_ground", rval = "bool", args = { } },
{ name = "is_player", rval = "bool", args = { } },
{ name = "is_symbol_highlighted", rval = "bool", args = { } },
{ name = "is_underwater", rval = "bool", args = { } },
{ name = "is_warm", rval = "bool", args = { } },
{ name = "knock_back_from", rval = nil, args = { "tripoint" } },
{ name = "melee_attack", rval = nil, args = { "Creature", "bool" } },
{ name = "mod_bash_bonus", rval = nil, args = { "int" } },
{ name = "mod_block_bonus", rval = nil, args = { "int" } },
Expand All @@ -1135,6 +1146,10 @@ classes = {
{ name = "on_hit", rval = nil, args = { "Creature", "body_part" } },
{ name = "on_hit", rval = nil, args = { "Creature", "body_part", "int" } },
{ name = "pos", rval = "tripoint", args = { } },
{ name = "posx", rval = "int", args = { } },
{ name = "posy", rval = "int", args = { } },
{ name = "posz", rval = "int", args = { } },
{ name = "power_rating", rval = "float", args = { } },
{ name = "process_effects", rval = nil, args = { } },
{ name = "process_turn", rval = nil, args = { } },
{ name = "remove_effect", rval = "bool", args = { "string" } },
Expand Down Expand Up @@ -1172,6 +1187,8 @@ classes = {
{ name = "set_str_bonus", rval = nil, args = { "int" } },
{ name = "set_throw_resist", rval = nil, args = { "int" } },
{ name = "set_value", rval = nil, args = { "string", "string" } },
{ name = "sight_range", rval = "int", args = { "int" } },
{ name = "skin_name", rval = "string", args = { } },
{ name = "symbol", rval = "string", args = { } },
{ name = "symbol_color", rval = "int", args = { } },
{ name = "uncanny_dodge", rval = "bool", args = { } },
Expand Down

0 comments on commit 2f42cea

Please sign in to comment.