mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Update SmallFarmStructure.php
changed chances
This commit is contained in:
parent
9a476ffdd1
commit
8d67ebd2d4
1 changed files with 6 additions and 3 deletions
|
|
@ -5,6 +5,9 @@ class SmallFarmStructure{
|
||||||
public static $lenght = 9;
|
public static $lenght = 9;
|
||||||
public static $tmpStructure;
|
public static $tmpStructure;
|
||||||
public static $structure = [
|
public static $structure = [
|
||||||
|
-1 => [
|
||||||
|
//add sand, clay if here isn't air
|
||||||
|
],
|
||||||
0 => [
|
0 => [
|
||||||
"WWWWWWW",
|
"WWWWWWW",
|
||||||
"WFFwFFW",
|
"WFFwFFW",
|
||||||
|
|
@ -21,7 +24,7 @@ class SmallFarmStructure{
|
||||||
public static function generateCrops(){
|
public static function generateCrops(){
|
||||||
self::$tmpStructure = self::$structure;
|
self::$tmpStructure = self::$structure;
|
||||||
$f = Utils::randomFloat();
|
$f = Utils::randomFloat();
|
||||||
if($f <= 0.25){
|
if($f <= 0.5){
|
||||||
self::$tmpStructure[1] = [
|
self::$tmpStructure[1] = [
|
||||||
"",
|
"",
|
||||||
" HH HH ",
|
" HH HH ",
|
||||||
|
|
@ -34,7 +37,7 @@ class SmallFarmStructure{
|
||||||
"",
|
"",
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
elseif($f <= 0.5){
|
elseif($f <= 0.7){
|
||||||
self::$tmpStructure[1] = [
|
self::$tmpStructure[1] = [
|
||||||
"",
|
"",
|
||||||
" CC CC ",
|
" CC CC ",
|
||||||
|
|
@ -47,7 +50,7 @@ class SmallFarmStructure{
|
||||||
"",
|
"",
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
elseif($f <= 0.75){
|
elseif($f <= 0.9){
|
||||||
self::$tmpStructure[1] = [
|
self::$tmpStructure[1] = [
|
||||||
"",
|
"",
|
||||||
" PP PP ",
|
" PP PP ",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue