I am currently testing some new things and one of them is to have an
DST_GOLD i know its already in the source. But its for something else. At least i think it is.
So what i did was creating my own DST named DST_GOLD1
So i have taken an look into mover.cpp where the nNumGold is located
nNumGold = (int)( nNumGold * prj.m_EventLua.GetGoldDropFactor());
So what i did next was something like this
Code:
//nNumGold = (int)( nNumGold * prj.m_EventLua.GetGoldDropFactor()); float fFactor = prj.m_EventLua.GetGoldDropFactor(); int nDstGold = GetParam( DST_GOLD1, 0 ); if( nDstGold < 0 ) fFactor *= ( 1.0f + ( nDstGold / 100.0f ) ); nNumGold = ( int ) (nNumGold * fFactor);
However it aint working.
If i change this
int nDstGold = GetParam( DST_GOLD1, 0 );
to
int nDstGold = 1000;
Then its working like it should be.
So as far as i can see its not picking up the DST_GOLD1 value
Its defined and its located in Spec_Item.txt.
Any help would be appriciated.