PHPÍøÒ³ÓÎϷѧϰ֮Xnova(ogame)Ô´Âë½â¶Á£¨Ê®Èý£©

5年以前  |  阅读数:680 次  |  编程语言:PHP 

Ê®Áu¡¢Ôi´¬ºÍ*ÀÓu£¨FleetBuildingPage.phpÓeDefensesBuildingPage.phpÒ³Ãae£(C)

ÏÈ˵Ôi´¬³§Ò³Ãae£¬ÆaʵÕa¸oÒ³ÃaeÖв¢Ã»ÓÐÕaeÕýµÄÔi´¬£¬Ö»ÊÇ°ÑÒªÔiµÄ´¬ºÍÊýÁ¿±£´aeµ½Êý¾Ý¿aÖУ»²uÉu´¬½¢µÄ´uÂeÔÚÁiÍaÒ»¸oº¯ÊýÀiÃae¡£ÏÂÃaeÎÒÃÇ¿ªÊ¼ÖÎoÕa¸oÒ³Ãae£¬²¢ÇÒÒ²°´ÕÕÇ°ÃaeµÄ˼£¬ÏȽ²½a¹¹ÔiÒ³ÃaeµÄ´uÂe¡£

Ê×ÏÈÅжϱ¾ÐÇÇoÊÇ*ñÒÑÓÐÔi´¬³§£¬Ã»Óе±È»ÒªÌaʾ¡£

ÏÂÃaeʹÓÃÑ­»*Ói¾a£¬¹¹Ôi³oÿÖÖ´¬½¢µÄ½¨ÔiÒ³Ãae£¬Õa¶Î´uÂeÎÒ¾oµÃ²»ÐeÒªÔÙÏeϸ½²½aÁË¡£

½ÓÏÂÀ´ÊÇÒªÏÔʾÕýÔÚÖÆÔiµÄ´¬½¢Áбi£¬Òª½Å±¾¶¯Ì¬ÏÔʾ£¬Êµ¼ÊÉÏÊǼÙÏñ£»¼´Ê¹ÏÔʾÓд¬½¢ÔiºÃÁË£¬Èç¹u²»ÊÇˢУ¬Êý¾Ý¿aÀiÃae²¢²»»aÓС£×¢ÒaÕaÀiÓÐÁ½¸oÖØÒªµÄ×ֶΣºb_hangar_id±£´ae×ÅÒªÔiµÄ´¬Áбi£»b_hangar±£´ae×ÅÉϴθuкoʣϵÄʱ¼a£¬µ¥Î»ÊÇÃe¡£

ʹÓú¯ÊýElementBuildListBox£¨£(C)£¬¹¹Ôi³oÒ»¸oÕýÔÚÔi´¬µÄ½Å±¾£¬º¯Êý´uÂe´o¼Ò×Ô¼º¿´£¬²»ÄÑ£¬Ö»ÒªÀi½aÁËÇ°ÃaeÎÒ˵µÄÁ½¸o×ֶξͿÉÒÔÁË¡£

×iºoÊa³oÔi´¬³§Ò³Ãae¡£

ÏÖÔÚÎÒÃÇÓֻص½Ç°Ãae£¬Íae¼ÒÊaÈeÒªÖÆÔiµÄ´¬½¢µÄÊýÁ¿£¬½øÈeÕa¶Î´uÂe¡£

1.È¡µÃÒªÖÆÔiµÄ´¬½¢´uÂeºÍÊýÁ¿
2.ÅжÏÖÆÔiµÄÊýÁ¿ÊÇñ³¬¹ýÔÊÐiµÄ×i´oÖµ£¬³¬¹ýÔoÈ¡×i´oÖµ
3.Èç¹uÖÆÔiÊýÁ¿²»ÎªÁa£¬ÅжÏÊÇ
ñÔÊÐiÖÆÔi
4.È»ºoÈ¡µÃµ±Ç°×ÊÔ´ÄÜÖÆÔiµÄ×i´oÖµ
5.ÉeÖÃ×ÊÔ´ÏuºÄºÍʱ¼aÏuºÄ
6.×iºo¸uÐÂÐÇÇoÊý¾Ý£¬°uÀ¨¼oÉÙ×ÊÔ´ºÍ½¨Ôi´¬½¢µÄ×Ö¶Îb_hangar_id£¬Ìu³o´uÂeÈçÏ£º


    if ($Count >= 1) {
     $CurrentPlanet['metal'] -= $Ressource['metal'];
     $CurrentPlanet['crystal'] -= $Ressource['crystal'];
     $CurrentPlanet['deuterium'] -= $Ressource['deuterium'];
     $CurrentPlanet['b_hangar_id'].= "". $Element .",". $Count .";";
    }

Ôi´¬³§Ò³ÃaeÍe³ÉÁË£¬ÏÂÃaeÎÒÃÇÀ´¿´*ÀÓuÒ³Ãae¡£Õa¸oÒ³Ãae»u±¾Âß¼­ºÍÔi´¬³§Ò»Ñu£¬ÕaÀi¾Í²»Ð´ÁË¡£²»Í¬µÄÊǶaÒ»Ð(C)Âß¼­ÏÞÖÆ£¬ÂÞÁгoÀ´ÈçÏ£º

1.ÔÚ¹¹ÔiÀÓuµ¥Î»Ò³ÃaeµÄʱºo£¬´uÂe407ºÍ408ÊÇ´oСÀÓu»¤¶Ü£¬Òª×¢ÒaÖ»ÄÜÓÐÒ»¸o
2.ÔÚÍae¼ÒÊaÈeÊýÁ¿ºoµÄÖÆÔi´uÂeÀiÃae£¬´uÂe502ºÍ503ÊÇÀ¹½Øµ¼µ¯ºÍÐǼʵ¼µ¯£¬Òª×¢ÒaÁ½¸oµ¼µ¯µÄÊýÁ¿¹ØϵºÍÕýÔÚÖÆÔiÁбiÀiÃaeµÄµ¼µ¯ÊýÁ¿
3.ͬÑuʹÓÃ×Ö¶Îb_hangar_id±£´ae

Ôi´¬ºÍÀÓuÒ³Ãae¼oµ¥µÄ½²½aÍeÁË£¬×iÖØÒªµÄÖÆÔi´uÂeÔÚÁiÍaÒ»¸oº¯ÊýÀiÃae£¬ÏÂÒ»Õ½ÚÖÎo¡£

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8