• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Items absorb/general c++

swevaman

New Member
Joined
Jun 18, 2013
Messages
38
Reaction score
0
Basically, my rings are working fine

So are the armors (sort of)

But on the armors, it says (Arm:7protection 5%), when it should be (Arm:7 protection 5%)

I've tried everything to get that space in, but it usually messes with rings/SSA absorb show.

21:15 You see lightning legs (Arm:7protection all 5%). BUGGED

21:15 You see a super ring that has 1 charge left (protection all 15%). WORKING

Here's the item.cpp part it relates to
Code:
	else if(it.armor != 0 || it.abilities.absorb.any()){
		if(it.showCharges){
			if(subType > 1){
				s << " that has " << (int32_t)subType << " charges left";
			}
			else{
				s << " that has 1 charge left";
			}
		}
         
		s << " (";
		bool prevDesc = false;
		if(it.armor != 0){
			// as it is the first desc it isn't
			// really necessary to add it here
			//if(prevDesc)
			//	s << ", ";
			s << "Arm:" << it.armor; 
			prevDesc = true;
		}
		

		if(it.abilities.absorb.any()){
			s << "protection";
			it.abilities.absorb.getDescription(s);
		}
		s << ").";
	}
 
Last edited:
Code:
	else if(it.armor != 0 || it.abilities.absorb.any()){
		if(it.showCharges){
			if(subType > 1){
				s << " that has " << (int32_t)subType << " charges left";
			}
			else{
				s << " that has 1 charge left";
			}
		}
         
		s << " (";
		bool prevDesc = false;
		if(it.armor != 0){
			// as it is the first desc it isn't
			// really necessary to add it here
			//if(prevDesc)
			//	s << ", ";
			s << "Arm:" << it.armor; 
			prevDesc = true;
		}
		

		if(it.abilities.absorb.any()){
			if(prevDesc)
				s << ", ";
			s << "protection";
			it.abilities.absorb.getDescription(s);
		}
		s << ").";
	}

Try this one
 
Back
Top