From 8d67ebd2d4158be0a1fa7b96b519a289a7f34556 Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Fri, 3 Mar 2023 00:19:47 +0300 Subject: [PATCH] Update SmallFarmStructure.php changed chances --- src/structure/village/SmallFarmStructure.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/structure/village/SmallFarmStructure.php b/src/structure/village/SmallFarmStructure.php index 63a1609d..36271ad9 100644 --- a/src/structure/village/SmallFarmStructure.php +++ b/src/structure/village/SmallFarmStructure.php @@ -5,6 +5,9 @@ class SmallFarmStructure{ public static $lenght = 9; public static $tmpStructure; public static $structure = [ + -1 => [ + //add sand, clay if here isn't air + ], 0 => [ "WWWWWWW", "WFFwFFW", @@ -21,7 +24,7 @@ class SmallFarmStructure{ public static function generateCrops(){ self::$tmpStructure = self::$structure; $f = Utils::randomFloat(); - if($f <= 0.25){ + if($f <= 0.5){ self::$tmpStructure[1] = [ "", " HH HH ", @@ -34,7 +37,7 @@ class SmallFarmStructure{ "", ]; } - elseif($f <= 0.5){ + elseif($f <= 0.7){ self::$tmpStructure[1] = [ "", " CC CC ", @@ -47,7 +50,7 @@ class SmallFarmStructure{ "", ]; } - elseif($f <= 0.75){ + elseif($f <= 0.9){ self::$tmpStructure[1] = [ "", " PP PP ",