SAM太无私了,但是通过买便宜的花种下去再铲掉刷经验BUG还在呢,在这里帮忙补充下
1.在newfarmjson.php中找到- if ( $_REQUEST['mod'] == "farmlandstatus" && $_REQUEST['act'] == "scarify" )
复制代码 2.在这一节中找到的- if ( 0 < $farm_arr[farmlandstatus][$_REQUEST['place']]->a )
- {
复制代码 在其下面添加:- $scarifyexp=0;
- if ( $farm_arr[farmlandstatus][$_REQUEST['place']]->b == 7 )
- {
- $scarifyexp=3;
- }
复制代码 3.找到- echo "{"farmlandIndex":".$_REQUEST['place'].","code":1,"direction":"","exp":3,"levelUp":false}";
复制代码 改为:- echo "{"farmlandIndex":".$_REQUEST['place'].","code":1,"direction":"","exp":".$scarifyexp.","levelUp":false}";
复制代码 4.找到- $_SGLOBAL['db']->query( "UPDATE ".tname( "plug_newfarm" )." set farmlandstatus='".$farm_arr."',exp=exp+3 where uid=".$_SGLOBAL['supe_uid'] );
复制代码 改为:- $_SGLOBAL['db']->query( "UPDATE ".tname( "plug_newfarm" )." set farmlandstatus='".$farm_arr."',exp=exp+".$scarifyexp." where uid=".$_SGLOBAL['supe_uid'] );
复制代码 保存~收工~~~!! |