<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments in Building Browsergames: Healing your players (PHP)</title><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 21 Apr 2009 11:14:01 -0000</lastBuildDate><item><title>Re: Building Browsergames: Healing your players (PHP)</title><link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/#comment-8486408</link><description>That'd definitely be better for the sake of minimizing database hits - while&lt;br&gt;I was building these scripts, I'm afraid they sort of grew organically, so&lt;br&gt;optimizations that should have been made sometimes didn't.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Tue, 21 Apr 2009 11:14:01 -0000</pubDate></item><item><title>Re: Building Browsergames: Healing your players (PHP)</title><link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/#comment-8480583</link><description>Hi! Firstly, I'd just like to say thank you for putting this site together. Its truly awesome and has given me a bit of a kick to actually stop thinking about doing something, and actually doing something!&lt;br&gt;&lt;br&gt;Secondly, on line 28, you poll the database to get the current gold count, yet on line 20 you've already done this and not changed it. Wouldn't it be more efficient to insert a line above 28 such as:&lt;br&gt;$gold = $gold - $amount;&lt;br&gt;and then change the setStat to:&lt;br&gt;setStat( 'gc', $userID, $gold);&lt;br&gt;&lt;br&gt;You could do the same with the actual healing value as well. Avoid two calls to getStat('curhp',$userID) as you've already got that value.&lt;br&gt;&lt;br&gt;From a performance point of view wouldn't this be better?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rick</dc:creator><pubDate>Tue, 21 Apr 2009 05:07:41 -0000</pubDate></item><item><title>Re: Building Browsergames: Healing your players (PHP)</title><link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/#comment-7457034</link><description>thanks for the info, I will try it now ...:D</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">obatjerawat</dc:creator><pubDate>Mon, 23 Mar 2009 21:10:42 -0000</pubDate></item></channel></rss>