Skip to content
Snippets Groups Projects
Commit 07a63f49 authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@2305 51575b47-30f0-44d4-a5cc-537603b46e54
parent ecf241d1
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,9 @@ module(..., package.seeall, class.inherit(mod.class.Actor, engine.interface.Acto
function _M:init(t, no_default)
mod.class.Actor.init(self, t, no_default)
ActorAI.init(self, t)
-- Grab default image name if none is set
if not self.image then self.image = "npc/"..self.subtype.."_"..self.name:lower():gsub("[^a-z0-9]", "_")..".png" end
end
function _M:act()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment