From f23ebba72f01fc6fac49211a50ca008c8af4ed84 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 8 Jul 2007 13:31:33 +0000 Subject: Added monster drops. --- src/game-server/spawnarea.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game-server/spawnarea.cpp') diff --git a/src/game-server/spawnarea.cpp b/src/game-server/spawnarea.cpp index 951b208..3a6e9a1 100644 --- a/src/game-server/spawnarea.cpp +++ b/src/game-server/spawnarea.cpp @@ -33,11 +33,11 @@ * TODO: Allow specifying being type and use it. */ -SpawnArea::SpawnArea(MapComposite *map, const Rectangle &zone): +SpawnArea::SpawnArea(MapComposite *map, MonsterClass *specy, const Rectangle &zone): Thing(OBJECT_OTHER, map), + mSpecy(specy), mZone(zone), mMaxBeings(10), - mBeingType(1), mSpawnRate(10), mNumBeings(0), mNextSpawn(0) @@ -67,7 +67,7 @@ SpawnArea::update() if (c) { - Being *being = new Monster(); + Being *being = new Monster(mSpecy); being->addDeathListener(this); // some bogus stats for testing -- cgit