Skip to content

Commit

Permalink
1.1.28.1028
Browse files Browse the repository at this point in the history
  • Loading branch information
SphereII committed Oct 28, 2024
1 parent 5a67110 commit 59e6ce3
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Mods/0-SCore/Config/items.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<configs>
<configs>
<append xpath="/items">
<item name="BanditFactionSchematic">
<property name="Extends" value="schematicMaster" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ public class BlockPlantGrowingSDX : BlockPlantGrowing
private int waterRange = 5;
private bool willWilt = false;


public int GetWaterRange() {
return waterRange;
}

public bool RequireWater() {
return requireWater;
}

public bool WillWilt() {
return willWilt;
}
protected BlockValue wiltedPlant = BlockValue.Air;
public override void LateInit()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class BlockWaterSourceSDX : BlockBaseWaterSystem
private float WaterRange = 5f;
private string waterType = "Limited";
private static readonly int IsSprinklerOn = Animator.StringToHash("isSprinklerOn");

private bool _muteSprinklerSound = false;
public override void LateInit()
{
base.LateInit();
Expand All @@ -14,6 +14,9 @@ public override void LateInit()

if (Properties.Values.ContainsKey("WaterType"))
waterType = Properties.Values["WaterType"];

if (this.Properties.Values.ContainsKey("MuteSound"))
_muteSprinklerSound = StringParsers.ParseBool(this.Properties.Values["MuteSound"]);
}

public bool IsWaterSourceUnlimited() {
Expand Down Expand Up @@ -104,6 +107,8 @@ public void ToggleSprinkler(Vector3i _blockPos, bool enabled = true) {
animator.SetBool(IsSprinklerOn, false);
StopSprinklerSound(_blockPos);
}
if ( _muteSprinklerSound)
StopSprinklerSound(_blockPos);
}

private bool IsConnectedToWaterPipe(Vector3i _blockPos)
Expand Down
2 changes: 1 addition & 1 deletion Mods/0-SCore/ModInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<Description value="SCore Mod" />
<DisplayName value="0-SCore" />
<Website value="" />
<Version value="1.1.22.1530" />
<Version value="1.1.28.1028" />
</xml>
4 changes: 2 additions & 2 deletions Mods/0-SCore/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
// [assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyVersion("20.0.*")]

[assembly: AssemblyVersion("1.1.22.1530")]
[assembly: AssemblyFileVersion("1.1.22.1530")]
[assembly: AssemblyVersion("1.1.28.1028")]
[assembly: AssemblyFileVersion("1.1.28.1028")]
9 changes: 9 additions & 0 deletions Mods/0-SCore/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ Direct Download to the 0-SCore.zip available on gitlab mirror: https://github.co
### Change Logs

[ Change Log ]
Version: 1.1.28.1028
[ Farming ]
- Added "MuteSound" to the BlockWaterSourceSDX to turn off sprinkler sound.
<property name="MuteSound" value="true" />
- Default is false, the sound is not muted.

- Added GetWaterRange(), RequireWater(), and WillWilt() public methods as part of the BlockPlantGrowingSDX
- No functionality change, just makes it easier for others to read values through code.

Version: 1.1.22.1530
[ Challenges ]
- Added a description_override attribute to completely over-ride the Localization key to the following Challenges:
Expand Down
Binary file modified Mods/0-SCore/SCore.dll
Binary file not shown.
Binary file modified Mods/0-SCore/SCore.pdb
Binary file not shown.
27 changes: 27 additions & 0 deletions Mods/Blooms Family Farming/Config/blocks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,33 @@
<property name="DescriptionKey" value="torchGroupDesc"/>
<property name="FilterTags" value="fdecor,felectrical"/>
<property name="SortOrder1" value="70a0"/>

<property name="WaterRange" value="5" />
<property name="MuteSound" value="true" />
</block>

<block name="gupSprinklerBlockLarge">
<property name="Material" value="Mmetal"/>
<property name="Class" value="WaterSourceSDX, SCore" />

<property name="IsTerrainDecoration" value="true"/>
<property name="Shape" value="ModelEntity"/>
<property name="Model" value="#@modfolder:Resources/gupSprinklerBlock.unity3d?gupLargeSprinkler.prefab"/>
<property name="Place" value="TowardsPlacerInverted"/>
<property name="OnlySimpleRotations" value="true"/>
<property name="MultiBlockDim" value="1,7,1" />
<property name="Collide" value="movement,melee,bullet,arrow,rocket"/>
<property name="CustomIcon" value="VMRotateSign" />
<property name="Stabilitysupport" value="true"/>
<property name="CreativeMode" value="Player"/>
<property name="Stacknumber" value="10"/>
<property name="Group" value="Basics,Building"/>
<property name="DescriptionKey" value="torchGroupDesc"/>
<property name="FilterTags" value="fdecor,felectrical"/>
<property name="SortOrder1" value="70a0"/>

<property name="WaterRange" value="25" />
<property name="MuteSound" value="true" />
</block>
</append>
</configs>

0 comments on commit 59e6ce3

Please sign in to comment.