Stat Inheritance Mod * thanks to Wallie! *
Backup files AND database before you apply this Mod. Leave all files open so you can simply 'undo' if you need to!
This Mod will take the stats from Wallie's Mod, and give your bred young a total of both. It can be easily tweaked to give half of their total, etc. class_breeding.php: Add this just above the insert statement. Code:
$mother_stat= $this->female->getAdoptstatname(); Change the insert statement "statname" => $statname To "statname" => $newstatname In breeding.php: Change - Code:
$mysidia->db->update("owned_adoptables",array("statname" => 'statname'),"aid = $offspringID"); Code:
$mysidia->db->update("owned_adoptables",array("statname" => ''),"aid = $offspringID"); As always back up files and databases before you try ANY new code! |
All times are GMT -5. The time now is 03:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.