Convert monster into a class

FossilOrigin-Name: e8f80b0482846dfbd5bf97ed375b13687d325e9ef7e2a79176dac49722180124
This commit is contained in:
Jonathan Schleifer 2025-03-23 02:03:32 +00:00
parent a7db00c740
commit 2c5f2d0342
16 changed files with 319 additions and 224 deletions

View file

@ -4,6 +4,7 @@
#import "DynamicEntity.h"
#import "Entity.h"
#import "Monster.h"
extern bool hasoverbright;
@ -205,7 +206,7 @@ dodynlight(const OFVector3D *vold, const OFVector3D *v, int reach, int strength,
{
if (!reach)
reach = dynlight;
if (owner.monsterState)
if ([owner isKindOfClass:Monster.class])
reach = reach / 2;
if (!reach)
return;