blob: 2d0264becc5a57ecf6ddf6c10e0ac23b0fc39b34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/**
* @file specialChest.c
* @ingroup Objects
*
* @brief Special Chest object
*/
#define NENT_DEPRECATED
#include "entity.h"
#include "flags.h"
#include "room.h"
extern void sub_08078828(Entity*);
extern void OpenSmallChest(u32 pos, u32 layer);
void SpecialChest(Entity* this) {
if (this->action == 0) {
if (CheckLocalFlag(this->type)) {
DeleteThisEntity();
}
this->action = 1;
this->collisionLayer = 1;
sub_08078828(this);
}
if (this->interactType != 0) {
OpenSmallChest(COORD_TO_TILE(this), 2);
DeleteThisEntity();
}
}
|