View Single Post
  #8  
Old 04-22-2015, 11:17 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,475
kristhasirah
Default

for those that have this mod running, this mod don't affect the adopts in the adopts shop so if you want to have it working on the adoptshops too, you must find in the /classes/class_stockadopt.php this:
PHP Code:
$genders = array('f''m');
      
$rand rand(0,1); 
and replace it with this:
PHP Code:
$genderNumber rand(099);
if(
$genderNumber $this->genderratio$gender "f";
else 
$gender "m"
in the $mysidia->db->insert change this:
PHP Code:
"gender" => $genders[$rand], 
for this:
PHP Code:
"gender" =>  $gender
Dont know if this is the correct way of doing it, but i have test it in my site and is working.

just in case... probably wont make to much of a change but add
PHP Code:
 Protected $genderratio
down of
PHP Code:
public $owner
in the same class_stockadopt.php
__________________
Reply With Quote