feat: tu43 entity sounds, spawner fixes, and a 16x16 region toolset
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "Painting.h"
|
||||
#include "GenericStats.h"
|
||||
#include "ItemFrame.h"
|
||||
#include "SoundTypes.h"
|
||||
|
||||
|
||||
HangingEntityItem::HangingEntityItem(int id, eINSTANCEOF eClassType) : Item(id)
|
||||
@@ -41,6 +42,11 @@ bool HangingEntityItem::useOn(shared_ptr<ItemInstance> instance, shared_ptr<Play
|
||||
{
|
||||
if(level->addEntity(entity)==TRUE)
|
||||
{
|
||||
if (eType==eTYPE_ITEM_FRAME)
|
||||
{
|
||||
entity->playSound(eSoundType_ENTITY_ITEMFRAME_PLACE, 1.0f, 1.0f);
|
||||
}
|
||||
|
||||
// 4J-JEV: Hook for durango 'BlockPlaced' event.
|
||||
if (eType==eTYPE_PAINTING) player->awardStat(GenericStats::blocksPlaced(Item::painting_Id), GenericStats::param_blocksPlaced(Item::painting_Id,instance->getAuxValue(),1));
|
||||
else if (eType==eTYPE_ITEM_FRAME) player->awardStat(GenericStats::blocksPlaced(Item::item_frame_Id), GenericStats::param_blocksPlaced(Item::item_frame_Id,instance->getAuxValue(),1));
|
||||
|
||||
Reference in New Issue
Block a user