About Upgrader
ABOUT UPGRADER :
Allows players to upgrade various item categories, including weapons, armor, and tools, each with unique upgrade options.
Extensive configuration options for server admins to adjust :
What items will be upgradable (Only items what you chose to put in config will have upgrades )
What upgrades will item have ( you dont need to put all upgrades on item ,only what upgrades you chose for a item)
Upgrade costs (you can put what ever custom/default item,and amount for cost)
Levels (you can choose how much upgrade will have levels)
Values of upgrades (you can choose value of each upgrade ,example "damage" Lv1 2% damage, Lv2 5%)
There is a easy way to control your upgrades , all about items can be done in UI.
Adding,removing items can be done by UI.
You can modify items true UI : upgrade types, levels ,values ,cost .
In chosing cost there is also custom category tab , you need to add those items in config at bottom of config file !
There is Inspection button where you can see stats of upgraded item in inventory.
UPGRADES :
Each category have their own upgrades :
Wepons : Armor : Tools :
Damage, Defense, GatherYield,
MagazineSize, Durability, Durability,
Durability, RadiationProtection, Deforestation,
LifeSteal, ResurrectionChance InstantMine,
CritChance, RestoreItems Smelting
InstaReload
Each category have RenameName of a item .
HOW TO USE :
Simple put Upgrader.cs to your plugin folder .
Add/remove items from config or true UI .
Chose upgrades for items (levels,cost,values) .
In Game :
Add permissions.
When player put item in Repair Bench he will see Upgrade button .
UI will open with upgrades.
Inspection button is below belt inventory ,when player click on it it will open inspection mode ,so he will be able to see item upgrades in small UI.
INFOPANEL :
Admins can change text in config file for a ServerName and Info .
For more explanations to player or what ever text you need .
DIAMONDS :
4 custom items (diamonds) .They can be used for cost of upgrades.
You can chose stacksize ,where they will spawn(lootboxes),chance to spawn in boxes ,and amount.
You can change theirs DisplayName , SkinId .
You can use them or not ,its a option .
COMMANDS :
Chat Command : /additem ( it opens Ui where you can modify upgrades )
Chat Command : /giveupgradeditem [playerID/name] <itemUID> ( when you upgrade item ,you can see his UID in DataFile ! )
Console Command : giveupgradeditem [playerID/name] <itemUID>
Chat Command : /givediamond "name" "amount"
Console Command - wipeupgradedata
PERMISSION SYSTEM/COMMANDS :
upgrader.button - allow to see button in repair bench for upgrade
upgrader.weapon - allow weapon upgrades
upgrader.armor - allow armor upgrades
upgrader.tool - allow tool upgrades
upgrader.bypasscost - free upgrades
upgrader.diamondgive - allow to use command /givediamond "name" "amount"
upgrader.additem - allow to use command /additem
upgrader.giveitem - allow to use command /giveupgradeditem [playerID/name] <itemUID>
console command - giveupgradeditem [playerID/name] <itemUID>
CONFIG EXAMPLE :
Upgrader.json
DATA :
There is data file what stores upgrades of items.
You can delete data items with command in console .
Console Command - wipeupgradedata
API :
[HookMethod("API_HasUpgrades")]
public bool API_HasUpgrades(Item item)
[HookMethod("API_GetUpgrades")]
public Dictionary<string, int> API_GetUpgrades(Item item)
[HookMethod("API_ApplyUpgrades")]
public void API_ApplyUpgrades(Item item, Dictionary<string, int> upgrades)