Heroel - A... project? (2 Viewers)

1734444948434.webp

Feel Better Get Well Soon GIF by Lucas and Friends by RV AppStudios
 
Okay guys, a couple of small (well, actually, big in terms of development) updates processed just now.

Battle.php has been modified. You now can select the opponent you wish to attack. During battles, you will now hit your opponent, and your opponent will hit you back. I will be making modifications to damage values over the next 24 hours.

Hospital has been updated and now automatically discharges patients who reach 75 health immediately. This should make for faster battling!

Unfortunately, my coding skills haven't developed quite enough just yet for me to implement the battle stats into battle... I did make some database adjustments earlier which may have resulted in the lowering of some stats, so apologies for that. I noticed that my code for gym isn't currently preventing multiple successive trains correctly, so I'll be attempting to fix this in the next 24-48 hours too. I still do plan to implement battle stats into the battle logic, and will 100% get to this, but it may be slightly further down the line (by this I mean maybe a week or so max).

I plan to catch up on some content orders here tomorrow as it's my first free day for a fair while, then tomorrow evening I'll be doing the following (and will stick to this list this time!):

  • Battle will receive a small further adjustment to limit how many attacks can be performed in quick succession. There will still be a high limit to allow for plenty of attacking, but this will just be mainly to stop the constant holding of F5. :p
  • I'll also be updating damage values during this Battle update. It's likely the values will remain random but have a reduced variance. The player initiating the attack will deal approximately double the amount of damage as they will receive (on average). There will still be a 10% chance for a double hit causing double damage.
  • Hospital will receive a small additional update to allow you to "bribe the doctor" for 25 gold in return for 50 health. This'll make it possible to leave hospital almost immediately if you're hospitalised. This will be adjusted again in the near future once more gold/health mechanics are developed.
  • Gym will be updated to correctly require a wait of 30 minutes between regular trains.
  • Possible I will make an attempt on an NPC battle feature that will allow players to fight NPC characters for a chance at finding loot (gold) and special items (that will have a use in a future update).

Thanks everyone, you're all awesome for being my very own beta testers!
-
 
and your opponent will hit you back.
That's no fun. I liked just beating people around with their arms tied behind their back.
I did make some database adjustments earlier which may have resulted in the lowering of some stats, so apologies for that.
Brroooooo I went from 30 strength to 10.
There will still be a 10% chance for a double hit causing double damage.
Instead of hard coding a 10% double-hit, it should be based on the agility or some other stat.

Say... (Agility / Rand(2-5)) * (Speed / Rand(2-5)) / Rand(1-10). At a base 10/10, this would give an odd of a double hit at anywhere from 0.4% to 25%.
 
First impression: The site is in the nude.

I agree, it doesn't look very good and I completely understand. Whilst I'm still not ready to add a theme or any real styling due to it just breaking things while I'm developing live, I will at least go through tomorrow and make all of the pages consistent (ie make the layout/ordering consistent and turn pages that have links into buttons to be consistent across all pages).
 
I agree, it doesn't look very good and I completely understand. Whilst I'm still not ready to add a theme or any real styling due to it just breaking things while I'm developing live, I will at least go through tomorrow and make all of the pages consistent (ie make the layout/ordering consistent and turn pages that have links into buttons to be consistent across all pages).
You should use a template engine instead.

PS: I'm protesting until I get my 30 strength back.
 
  • Haha
Reactions: fdk
I ran into some problems tonight with some updates and am calling it a night for now. Everything bar the gym is still working, although not exactly as intended right now and not as much was done tonight as I'd hoped, but here is what is done:

  • Attacking players now deal a random amount of damage between 5-20, with a chance of your strength stat further increasing the maximum damage when above a certain threshold.
  • Defending players now deal a random amount of damage between 3-12, with a chance of their strength stat further increasing their maximum damage when above a certain threshold.
  • If an attacking player has an Agility stat that is significantly higher than a Defenders Speed stat, there is a chance the Defender won't hit them.
  • If an attacking player has a Defence stat that is significantly higher than a Defenders Strength stat, the damage dealt range can reduce to between 1-8.
  • Hospital discharge now requires 25 health to become available.

When I was attempting some updates to the gym.php page, I confused some logic statements. The result is that currently, gym trains are not actually processed. It's nearly 2am so I simply don't have time to fix this right now, but I will get to it tomorrow.
 
Damn. You fixed my exploit. I wrote "x" in Googe's console and just put an automated mouse clicker on refresh of ?method=get&stat=strength. I think I could've used JS to refresh it, but couldn't figure it out. The "x" was just so that the post confirmation window wouldn't come up without having to edit Chrome settings (by having to close out of Chrome and restarting it to apply).

1734607861979.webp

I still think I deserve my 30-strength. That took a lot of computing power... and ingenuity.
 
Damn. You fixed my exploit. I wrote "x" in Googe's console and just put an automated mouse clicker on refresh of ?method=get&stat=strength. I think I could've used JS to refresh it, but couldn't figure it out. The "x" was just so that the post confirmation window wouldn't come up without having to edit Chrome settings (by having to close out of Chrome and restarting it to apply).

View attachment 534

I still think I deserve my 30-strength. That took a lot of computing power... and ingenuity.

When I saw your stats the other night, I knew you had managed to find something, I just couldn't be bothered to go back through database logs to find out what! :p Gave me a good reason to go through the code and find out though... if I'm honest, the gym.php page is the worst code of all the code I've produced so far, so I'm considering just starting completely from scratch on it to make sure I get everything working as intended.
 
  • Haha
Reactions: frm
When I saw your stats the other night, I knew you had managed to find something, I just couldn't be bothered to go back through database logs to find out what! :p Gave me a good reason to go through the code and find out though... if I'm honest, the gym.php page is the worst code of all the code I've produced so far, so I'm considering just starting completely from scratch on it to make sure I get everything working as intended.
I'm still on a hunger strike till I get my 30 strength back.

You have till breakfast!

I'm off to bed.
 
  • Haha
Reactions: fdk

Users who are viewing this thread

  • fdk
Back
Top