feat: tu43 entity sounds, spawner fixes, and a 16x16 region toolset

This commit is contained in:
Fireblade
2026-07-23 19:47:55 -04:00
parent 1488469cb2
commit a045d994fb
135 changed files with 416 additions and 20 deletions
+6
View File
@@ -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));