Lua versioninfo start, small ressurection tool update.

develop
Warmist 2011-08-07 15:21:52 +03:00
parent f2b8ff1280
commit bead6cd350
3 changed files with 13 additions and 1 deletions

@ -0,0 +1,9 @@
#ifndef LUA_VERSIONINFO_H
#define LUA_VERSIONINFO_H
#include <dfhack/VersionInfo.h>
namespace lua
{
}
#endif

@ -21,6 +21,8 @@ function adv_tools.ressurect()
flg:set(1,false) --ALIVE flg:set(1,false) --ALIVE
flg:set(39,false) -- leave body yet again flg:set(39,false) -- leave body yet again
flg:set(37,false) -- something todo with wounds- lets you walk again. flg:set(37,false) -- something todo with wounds- lets you walk again.
flg:set(58,true) -- makes them able to breathe
flg:set(61,true) -- gives them sight
engine.poke(vector:getval(indx),ptr_Creature.flags,flg) engine.poke(vector:getval(indx),ptr_Creature.flags,flg)
end end

@ -0,0 +1 @@
#include "lua_VersionInfo.h"