Skip to content

Commit

Permalink
[10585] Make GO type 10 become nice and shiny: sparkling animation an…
Browse files Browse the repository at this point in the history
…d jingle bells

When GO is active for quest, same as GO type 3.
Also add comments for future development of gameobject dynamic flags

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Oct 7, 2010
1 parent 40685ff commit 829f746
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions src/game/Object.cpp
Expand Up @@ -682,9 +682,19 @@ void Object::BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask *
if( updateMask->GetBit( index ) )
{
// send in current format (float as float, uint32 as uint32)
if ( index == GAMEOBJECT_DYNAMIC )
if (index == GAMEOBJECT_DYNAMIC)
{
if(IsActivateToQuest )
// GAMEOBJECT_TYPE_DUNGEON_DIFFICULTY can have lo flag = 2
// most likely related to "can enter map" and then should be 0 if can not enter
// GAMEOBJECT_TYPE_QUESTGIVER can have lo flag = 1
// most likely related to can take/finish quest at

// GO_DYNFLAG_ACTIVATE = 0x01
// GO_DYNFLAG_ANIMATE = 0x02
// GO_DYNFLAG_NO_INTERACT = 0x04
// GO_DYNFLAG_SPARKLE = 0x08

if (IsActivateToQuest)
{
switch(((GameObject*)this)->GetGoType())
{
Expand All @@ -694,7 +704,7 @@ void Object::BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask *
*data << uint16(-1);
break;
case GAMEOBJECT_TYPE_GOOBER:
*data << uint16(1);
*data << uint16(9);
*data << uint16(-1);
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10584"
#define REVISION_NR "10585"
#endif // __REVISION_NR_H__

0 comments on commit 829f746

Please sign in to comment.