FIX: for tradeskill classes showing up correctly

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

FIX: for tradeskill classes showing up correctly

Post by Ememjr » Tue Jun 20, 2017 3:39 pm

items.cpp

replace this block of code that starts with this for

Code: Select all

for(int i=ALCHEMIST - ARTISAN ;i>=0;i--){
with this

Code: Select all

for(int i=ALCHEMIST+1 - ARTISAN ;i>=0;i--){
			//tmpVal = 2 << i;
			tmpVal = (int64)pow(2.0, (double)i);
			if((generic_info.tradeskill_classes & tmpVal)){
				classes += pow(2, (i + ARTISAN ));
				//classes += 2 << (i+ARTISAN-1);
				tmp_level = GetOverrideLevel(i, 255);
				if(tmp_level == 0)
					tradeskill_class_levels[i] = generic_info.tradeskill_default_level;
				else
					tradeskill_class_levels[i] = tmp_level;
			}
		}
before
ts item.JPG
after
after.JPG
You do not have the required permissions to view the files attached to this post.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests