1st March
- added test map on World Map page, need to add few sub-pages with the location details (count griffs inhabiting them etc)
edit: done! but it only fetches IDs, need to list names later.
- added some simple test things to location pages: it checks if your griff has ever been to a place before (could add custom content for first visits) and in different areas you get money, items, checks if you have a certain item or not (again more custom content possible later - need keys or passes to reach things)...
Other things to do this evening...
- split achievements page into 2: extra page shows your avatar collection (they'll be unlocked with each achievement)
edit: done. And then I realised this was totally redundant; why not just use the avatars in place of trophy images? They'll be shiny little pixel animations, scenes etc. Yeah, there can be other pages for more collectible things later.
- add full levels for all breeds - need to come up with a formula for increasing amounts of EXP needed...
edit: that was easy... the decimal number can be changed for softer or sharper curves for different breeds. At 1, you'll need just over 5000 EXP to reach lvl100.
- also must decide how level increases stats. Each extra level multiplies inborn stats by 1.1 or something? Need to test I suppose
- add inbreeding meter and checks, pretty sure I scribbled some code in notepad the other week
edit: done! Whew that took some fiddling. But it seems to work, yay. A few generations of crossing siblings and we're at 100%.
I find it quite cool how different they still look... I worried they'd get homogenous with the same alleles but no, lots of shades and different wing/horn colours in there. They're quite distinct.
In flock:
![[Image: inbredflock_by_bronzehalo-dc4oql1.png]](https://orig00.deviantart.net/2196/f/2018/060/6/a/inbredflock_by_bronzehalo-dc4oql1.png)
On profiles:
![[Image: inbreedtest_by_bronzehalo-dc4opr2.png]](https://orig00.deviantart.net/7684/f/2018/060/f/c/inbreedtest_by_bronzehalo-dc4opr2.png)
At the moment there are no ill-effects from inbreeding. Later it should reduce the inborn stats, and have a proportional chance of mutating the griff into Bald breed, which will be ugly, difficult to level up (lower number of lvls and need huge amounts of EXP for them), have low skill potentials, and can only breed with its own kind. Yay!
(amusingly though, I can foresee some jokey players trying to start a Bald elite breeding team for a challenge...)
2nd March
- added a changing note/warning on profiles, depending how badly a griff is inbred.
- changed breeding system to use growth stages, as levels are now used for other things.
However I found a terrible logic problem with the inbreeding checks: if one parent is inbred, they'll cause more inbreeding due to sharing ancestors on their side (it multiplies)... it's impossible to get chicks out of. Hmmmm! Do I need to restructure this so they're split into two sides? Argh...
edit: ah, that seems to work. Only compare one side's ancestors to the other side's ancestors. Now you cross an inbred griff with an unrelated stranger and the chick's level goes down.
- worked on battle system a bit more, now you can fight other griffs. The URL is "... duel/griff/NUMBER". The latter bit being their id number.
You can still visit the usual Battle page and fight randomised opponents instead, if you want.
3rd March
Feeling ill today. Nonetheless, have cleaned up the Duel system a bit. Need to...
- add an option on manage pages so users can set their griffs as fightable-by-strangers or not, should be easy
- try putting together custom arrays of opponent attacks, so they only respond with the moves they've learned (along with generic attacks in case they know none)
edit: done! Woohoo! Battles are much more interesting now.
There are extra moves attached to certain companions and treasures, so that adds even more strategy for players; which ones to equip to a griff?
And once a griff learns a skill, it can't be forgotten, and will always be available in their battle array. So if you want to present a strong fighter you may avoid ever teaching them weak skills, and only give them the highest level versions.
- added checks and stat boosts for certain wearables, elements, companions and treasures
- added battle results to user notifications, for both griffs' owners.
- there seems to be a small issue with some battlers' energy suddenly dropping to 0 after results. Probably made a silly mistake in the calculation.
- added some preset opponents. Ought to note their level among other info... whoops, will add it tomorrow.
![[Image: battleprev_by_bronzehalo-dc4vp5g.png]](https://orig00.deviantart.net/e0b3/f/2018/062/7/3/battleprev_by_bronzehalo-dc4vp5g.png)
Other stuff that needs doing soonish...
- change the details visible on chick, egg etc profiles and change the daily activities available for each stage
- gain skills from those activities - must have check so skill points can't exceed the current potential number
- update the sex-change magic item so it updates skill potential; if you turn a female Rampant male and she has 66 out of 80 Flight points, those should drop to 15/15 or whatever the male's maximum is
- add a bit of code in griff profiles that displays them differently if they're in pound (or wild or dead, later)
- and similar for user profiles, check for certain names and show custom layout
- added test map on World Map page, need to add few sub-pages with the location details (count griffs inhabiting them etc)
edit: done! but it only fetches IDs, need to list names later.
- added some simple test things to location pages: it checks if your griff has ever been to a place before (could add custom content for first visits) and in different areas you get money, items, checks if you have a certain item or not (again more custom content possible later - need keys or passes to reach things)...
Other things to do this evening...
- split achievements page into 2: extra page shows your avatar collection (they'll be unlocked with each achievement)
edit: done. And then I realised this was totally redundant; why not just use the avatars in place of trophy images? They'll be shiny little pixel animations, scenes etc. Yeah, there can be other pages for more collectible things later.
- add full levels for all breeds - need to come up with a formula for increasing amounts of EXP needed...
edit: that was easy... the decimal number can be changed for softer or sharper curves for different breeds. At 1, you'll need just over 5000 EXP to reach lvl100.
PHP Code:
<?php
$add = 0;
$a = 0;
$level = 0;
while ($level < 101) {
$add ++;
$a = (ceil($a + ($add * 0.9)));
$level ++;
echo "<br>$a ";
}
?>- add inbreeding meter and checks, pretty sure I scribbled some code in notepad the other week
edit: done! Whew that took some fiddling. But it seems to work, yay. A few generations of crossing siblings and we're at 100%.
I find it quite cool how different they still look... I worried they'd get homogenous with the same alleles but no, lots of shades and different wing/horn colours in there. They're quite distinct.
In flock:
![[Image: inbredflock_by_bronzehalo-dc4oql1.png]](https://orig00.deviantart.net/2196/f/2018/060/6/a/inbredflock_by_bronzehalo-dc4oql1.png)
On profiles:
![[Image: inbreedtest_by_bronzehalo-dc4opr2.png]](https://orig00.deviantart.net/7684/f/2018/060/f/c/inbreedtest_by_bronzehalo-dc4opr2.png)
At the moment there are no ill-effects from inbreeding. Later it should reduce the inborn stats, and have a proportional chance of mutating the griff into Bald breed, which will be ugly, difficult to level up (lower number of lvls and need huge amounts of EXP for them), have low skill potentials, and can only breed with its own kind. Yay!
(amusingly though, I can foresee some jokey players trying to start a Bald elite breeding team for a challenge...)
2nd March
- added a changing note/warning on profiles, depending how badly a griff is inbred.
- changed breeding system to use growth stages, as levels are now used for other things.
However I found a terrible logic problem with the inbreeding checks: if one parent is inbred, they'll cause more inbreeding due to sharing ancestors on their side (it multiplies)... it's impossible to get chicks out of. Hmmmm! Do I need to restructure this so they're split into two sides? Argh...
edit: ah, that seems to work. Only compare one side's ancestors to the other side's ancestors. Now you cross an inbred griff with an unrelated stranger and the chick's level goes down.
- worked on battle system a bit more, now you can fight other griffs. The URL is "... duel/griff/NUMBER". The latter bit being their id number.
You can still visit the usual Battle page and fight randomised opponents instead, if you want.
3rd March
Feeling ill today. Nonetheless, have cleaned up the Duel system a bit. Need to...
- add an option on manage pages so users can set their griffs as fightable-by-strangers or not, should be easy
- try putting together custom arrays of opponent attacks, so they only respond with the moves they've learned (along with generic attacks in case they know none)
edit: done! Woohoo! Battles are much more interesting now.
There are extra moves attached to certain companions and treasures, so that adds even more strategy for players; which ones to equip to a griff?
And once a griff learns a skill, it can't be forgotten, and will always be available in their battle array. So if you want to present a strong fighter you may avoid ever teaching them weak skills, and only give them the highest level versions.
- added checks and stat boosts for certain wearables, elements, companions and treasures
- added battle results to user notifications, for both griffs' owners.
- there seems to be a small issue with some battlers' energy suddenly dropping to 0 after results. Probably made a silly mistake in the calculation.
- added some preset opponents. Ought to note their level among other info... whoops, will add it tomorrow.
![[Image: battleprev_by_bronzehalo-dc4vp5g.png]](https://orig00.deviantart.net/e0b3/f/2018/062/7/3/battleprev_by_bronzehalo-dc4vp5g.png)
Other stuff that needs doing soonish...
- change the details visible on chick, egg etc profiles and change the daily activities available for each stage
- gain skills from those activities - must have check so skill points can't exceed the current potential number
- update the sex-change magic item so it updates skill potential; if you turn a female Rampant male and she has 66 out of 80 Flight points, those should drop to 15/15 or whatever the male's maximum is
- add a bit of code in griff profiles that displays them differently if they're in pound (or wild or dead, later)
- and similar for user profiles, check for certain names and show custom layout

