- if ( $value->status == 1 && $_SGLOBAL['timestamp'] < $value->dogFeedTime )
- {
- $suiji=rand(1,10);
- if($suiji>6){
- $dog_ok=1;
- $dog_poptype=3;
- $dog_harvest=0;
- $dog_thief=0;
- $suiji2=rand(1,10);
- if($suiji2>8){
- $dog_money=round(20*rand(1,30)/5)*rand(1,2);
- }else{
- $dog_money=round(10*rand(1,20)/5);
- }
- $dogstr = "\\u4F60\\u5728\\u5077\\u7A83\\u8FC7\\u7A0B\\u4E2D\\u88ABTA\\u7684\\u72D7\\u72D7\\u53D1\\u73B0\\uFF0C\\u5728\\u9003\\u8DD1\\u8FC7\\u7A0B\\u4E2D\\u4E22\\u5931".$dog_money."\\u91D1\\u5E01\\u3002";
-
- }
复制代码
Change to This???:
- if ( $value->status == 1 && $_SGLOBAL['timestamp'] < $value->dogFeedTime )
- //狗无食物不咬人
- {
- $suiji=rand(1,10);
- if($suiji>6){
- //咬人概率
- $dog_ok=1;
- $dog_poptype=3;
- $dog_harvest=0;
- $dog_thief=0;
- $suiji2=rand(1,10);
- //两种扣钱概率的出现概率
- if($suiji2>8){
- //扣钱概率一
- $dog_money=round(20*rand(1,30)/5)*rand(1,2);
- }else{
- //扣钱概率二
- $dog_money=round(10*rand(1,20)/5);
- }
- $dogstr = "\\u4F60\\u5728\\u5077\\u7A83\\u8FC7\\u7A0B\\u4E2D\\u88ABTA\\u7684\\u72D7\\u72D7\\u53D1\\u73B0\\uFF0C\\u5728\\u9003\\u8DD1\\u8FC7\\u7A0B\\u4E2D\\u4E22\\u5931".$dog_money."\\u91D1\\u5E01\\u3002";
- }
复制代码 |