diff options
Diffstat (limited to 'source/Mobs/Skeleton.cpp')
-rw-r--r-- | source/Mobs/Skeleton.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/Mobs/Skeleton.cpp b/source/Mobs/Skeleton.cpp index 56bbb9310..b35cdb68e 100644 --- a/source/Mobs/Skeleton.cpp +++ b/source/Mobs/Skeleton.cpp @@ -39,9 +39,10 @@ void cSkeleton::Tick(float a_Dt) { cMonster::Tick(a_Dt); - //TODO Outsource - //TODO should do lightcheck, not daylight -> mobs in the dark donīt burn - if (GetWorld()->GetWorldTime() < (12000 + 1000) && GetMetaData() != BURNING ) { //if daylight + // TODO Outsource + // TODO should do SkyLight check, mobs in the dark donīt burn + if ((GetWorld()->GetTimeOfDay() < (12000 + 1000)) && (GetMetaData() != BURNING)) + { SetMetaData(BURNING); // BURN, BABY, BURN! >:D } } |