localdesc=use_actor:getTalentFullDescription(t,nil,{force_level=self.use_talent.level,ignore_cd=true,ignore_ressources=true,ignore_use_time=true,ignore_mode=true,custom=self.use_talent.powerandtstring{{"color",0x6f,0xff,0x83},"Power cost: ",{"color",0x7f,0xff,0xd4},("%d out of %d/%d."):format(usepower(self.use_talent.power),self.power,self.max_power)}})
ifself.talent_cooldownthen
ret=tstring{{"color","YELLOW"},"It can be used to activate talent ",t.name,", placing all other charms into a ",tostring(math.floor(usepower(self.use_talent.power)))," cooldown :",{"color","LAST"},true}
else
ret=tstring{{"color","YELLOW"},"It can be used to activate talent ",t.name," (costing ",tostring(math.floor(usepower(self.use_talent.power)))," power out of ",tostring(math.floor(self.power)),"/",tostring(math.floor(self.max_power)),") :",{"color","LAST"},true}
iftthen
localdesc=use_actor:getTalentFullDescription(t,nil,{force_level=self.use_talent.level,ignore_cd=true,ignore_ressources=true,ignore_use_time=true,ignore_mode=true,custom=self.use_talent.powerandtstring{{"color",0x6f,0xff,0x83},"Power cost: ",{"color",0x7f,0xff,0xd4},("%d out of %d/%d."):format(usepower(self.use_talent.power),self.power,self.max_power)}})
ifself.talent_cooldownthen
ret=tstring{{"color","YELLOW"},"It can be used to activate talent ",t.name,", placing all other charms into a ",tostring(math.floor(usepower(self.use_talent.power)))," cooldown :",{"color","LAST"},true}
else
ret=tstring{{"color","YELLOW"},"It can be used to activate talent ",t.name," (costing ",tostring(math.floor(usepower(self.use_talent.power)))," power out of ",tostring(math.floor(self.power)),"/",tostring(math.floor(self.max_power)),") :",{"color","LAST"},true}