이 비교의 나머지 부분을 불러오는 중입니다.

Patch

생성일 비교 결과 만료 없음
6 삭제
689 행
8 추가
690 행
using System;
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using System.Text;
using System.Text;
using System.Reflection;
using System.Reflection;
using Oxide.Core;
using Oxide.Core;
using Oxide.Core.Database;
using Oxide.Core.Database;
using Oxide.Core.Plugins;
using Oxide.Core.Plugins;
using Oxide.Core.Libraries;
using Oxide.Core.Libraries;
using Oxide.Core.Libraries.Covalence;
using Oxide.Core.Libraries.Covalence;
using Oxide.Game.Rust.Cui;
using Oxide.Game.Rust.Cui;
using UnityEngine;
using UnityEngine;


namespace Oxide.Plugins
namespace Oxide.Plugins
{
{
[Info("ZLevels Remastered", "Default", "2.9.10")]
[Info("ZLevels Remastered", "Default", "2.9.10")]
[Description("Lets players level up as they harvest different resources and when crafting")]
[Description("Lets players level up as they harvest different resources and when crafting")]
class ZLevelsRemastered : RustPlugin
class ZLevelsRemastered : RustPlugin
{
{
#region Variables
#region Variables


[PluginReference]
[PluginReference]
Plugin EventManager;
Plugin EventManager;


bool Changed = false;
bool Changed = false;
bool initialized;
bool initialized;
bool bonusOn = false;
bool bonusOn = false;
static ZLevelsRemastered zLevels = null;
static ZLevelsRemastered zLevels = null;


Dictionary<string, ItemDefinition> CraftItems;
Dictionary<string, ItemDefinition> CraftItems;
CraftData _craftData;
CraftData _craftData;
PlayerData playerPrefs = new PlayerData();
PlayerData playerPrefs = new PlayerData();
bool newSaveDetected = false;
bool newSaveDetected = false;


private long[] levelAnnounce =
private long[] levelAnnounce =
{10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200};
{10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200};


int MaxB = 999;
int MaxB = 10001;
int MinB = 10;
int MinB = 10;


#endregion Variables
#endregion Variables


#region Config
#region Config


int gameProtocol;
int gameProtocol;
int penaltyMinutes;
int penaltyMinutes;
bool penaltyOnDeath;
bool penaltyOnDeath;
bool wipeDataOnNewSave;
bool wipeDataOnNewSave;
bool enablePermission;
bool enablePermission;
bool enableNightBonus;
bool enableNightBonus;
bool logEnabledBonusConsole;
bool logEnabledBonusConsole;
bool broadcastEnabledBonus;
bool broadcastEnabledBonus;
bool enableLevelupBroadcast;
bool enableLevelupBroadcast;
string permissionName;
string permissionName;
string permissionNameXP;
string permissionNameXP;
string pluginPrefix;
string pluginPrefix;
bool playerCuiDefaultEnabled;
bool playerCuiDefaultEnabled;
bool playerPluginDefaultEnabled;
bool playerPluginDefaultEnabled;
bool excludeWeaponsOnGather;
bool excludeWeaponsOnGather;
bool excludeJackhammerOnGather;
bool excludeJackhammerOnGather;
bool excludeChainsawOnGather;
bool excludeChainsawOnGather;
bool enableDispenserGather;
bool enableDispenserGather;
bool enableCollectiblePickup;
bool enableCollectiblePickup;
bool enableCropGather;
bool enableCropGather;


Dictionary<string, object> enabledCollectibleEntity;
Dictionary<string, object> enabledCollectibleEntity;
Dictionary<string, object> defaultMultipliers;
Dictionary<string, object> defaultMultipliers;
Dictionary<string, object> resourceMultipliers;
Dictionary<string, object> resourceMultipliers;
Dictionary<string, object> resourceMultipliersAtNight;
Dictionary<string, object> resourceMultipliersAtNight;
Dictionary<string, object> resourceMultipliersCurrent;
Dictionary<string, object> resourceMultipliersCurrent;
Dictionary<string, object> levelCaps;
Dictionary<string, object> levelCaps;
Dictionary<string, object> pointsPerHit;
Dictionary<string, object> pointsPerHit;
Dictionary<string, object> pointsPerHitAtNight;
Dictionary<string, object> pointsPerHitAtNight;
Dictionary<string, object> pointsPerHitCurrent;
Dictionary<string, object> pointsPerHitCurrent;
Dictionary<string, object> craftingDetails;
Dictionary<string, object> craftingDetails;
Dictionary<string, object> percentLostOnDeath;
Dictionary<string, object> percentLostOnDeath;
Dictionary<string, object> colors;
Dictionary<string, object> colors;


Dictionary<string, int> skillIndex;
Dictionary<string, int> skillIndex;
Dictionary<string, object> cuiColors;
Dictionary<string, object> cuiColors;
bool cuiEnabled;
bool cuiEnabled;
int cuiFontSizeLvl;
int cuiFontSizeLvl;
int cuiFontSizeBar;
int cuiFontSizeBar;
int cuiFontSizePercent;
int cuiFontSizePercent;
string cuiFontColor;
string cuiFontColor;
bool cuiTextShadow;
bool cuiTextShadow;
string cuiXpBarBackground;
string cuiXpBarBackground;
string cuiBoundsBackground;
string cuiBoundsBackground;
Dictionary<string, object> cuiPositioning;
Dictionary<string, object> cuiPositioning;


protected override void LoadDefaultConfig()
protected override void LoadDefaultConfig()
{
{
Config.Clear();
Config.Clear();
LoadVariables();
LoadVariables();
}
}


object GetConfig(string menu, string datavalue, object defaultValue)
object GetConfig(string menu, string datavalue, object defaultValue)
{
{
var data = Config[menu] as Dictionary<string, object>;
var data = Config[menu] as Dictionary<string, object>;
if (data == null)
if (data == null)