From bcd84203b77d0df99d681c64e4060693cf283134 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 15 Aug 2019 05:46:39 +1000 Subject: Actually calculate the sample money modules fake balance. --- .../OptionalModules/World/MoneyModule/SampleMoneyModule.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs') diff --git a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs index b003e1f..f378921 100644 --- a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs +++ b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs @@ -573,9 +573,18 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule /// private int GetFundsForAgentID(UUID AgentID) { - int returnfunds = 90101; // Set it to the OpenSim version, plus the SC build number. Muahahaha; + int result = 0; + // Set it to the OpenSim version, plus the SC build number. Muahahaha; + string v = VersionInfo.VersionNumber + VersionInfo.SC_BUILD_NUMBER.PadLeft(3, '0'); + try + { + result = Int32.Parse(v.Replace(".", "")); + } + catch (FormatException) + { + } - return returnfunds; + return result; } // private void SetLocalFundsForAgentID(UUID AgentID, int amount) -- cgit v1.1