Thread: Mys 1.3.x Stat/SKill System
View Single Post
  #86  
Old 01-13-2016, 09:36 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 125,401
Kyttias is on a distinguished road
Default

*shrug* Bizarre. This is exactly what I use for my pet's personality (so, same concept of rendering it to levelupview.php):

Code:
This is a {$adopt->size}-sized, {$adopt->nature} {$adopt->type} that likes {$adopt->likes} and dislikes {$adopt->dislikes}.
Keeping in mind that in just levelup.php it has to be:

Code:
This is a {$this->adopt->size}-sized, {$this->adopt->nature} {$this->adopt->type} that likes {$this->adopt->likes} and dislikes {$this->adopt->dislikes}.
Because it wants the '$this' involved.

If you really wanted to you could create a function by copying over one of the existing ones in class_ownedadoptable.php but it seems really redundant.

Then again, I also display my birthdays with just $adopt->birthday and you should also really be able to call gender with just $adopt->gender (after making it no longer protected). At least in v1.3.4, because of how things pull from the database. Basically any column name should be able to show up this way. Check if there's value in it for that specific adopt???
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 01-13-2016 at 09:38 AM.
Reply With Quote