mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-13 15:54:35 +01:00
fixed regressions to give command, I am dum
This commit is contained in:
@@ -56,7 +56,7 @@ namespace PemukulPaku.GameServer.Commands
|
|||||||
if (weaponData.EvoId == 0)
|
if (weaponData.EvoId == 0)
|
||||||
{
|
{
|
||||||
Weapon weapon = player.Equipment.AddWeapon(weaponData.Id);
|
Weapon weapon = player.Equipment.AddWeapon(weaponData.Id);
|
||||||
weapon.Level = value <= 0 ? (uint)weaponData.MaxLv : (uint)value;
|
weapon.Level = value is not null && value <= 0 ? (uint)weaponData.MaxLv : value is not null ? (uint)value : (uint)weaponData.MaxLv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -65,7 +65,7 @@ namespace PemukulPaku.GameServer.Commands
|
|||||||
foreach (WeaponDataExcel weaponData in WeaponData.GetInstance().All)
|
foreach (WeaponDataExcel weaponData in WeaponData.GetInstance().All)
|
||||||
{
|
{
|
||||||
Weapon weapon = player.Equipment.AddWeapon(weaponData.Id);
|
Weapon weapon = player.Equipment.AddWeapon(weaponData.Id);
|
||||||
weapon.Level = value <= 0 ? (uint)weaponData.MaxLv : (uint)value;
|
weapon.Level = value is not null && value <= 0 ? (uint)weaponData.MaxLv : value is not null ? (uint)value : (uint)weaponData.MaxLv;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "stigmata":
|
case "stigmata":
|
||||||
@@ -75,7 +75,7 @@ namespace PemukulPaku.GameServer.Commands
|
|||||||
if (stigmataData.EvoId == 0)
|
if (stigmataData.EvoId == 0)
|
||||||
{
|
{
|
||||||
Stigmata stigmata = player.Equipment.AddStigmata(stigmataData.Id);
|
Stigmata stigmata = player.Equipment.AddStigmata(stigmataData.Id);
|
||||||
stigmata.Level = value <= 0 ? (uint)stigmataData.MaxLv : (uint)value;
|
stigmata.Level = value is not null && value <= 0 ? (uint)stigmataData.MaxLv : value is not null ? (uint)value : (uint)stigmataData.MaxLv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -84,7 +84,7 @@ namespace PemukulPaku.GameServer.Commands
|
|||||||
foreach (StigmataDataExcel stigmataData in StigmataData.GetInstance().All)
|
foreach (StigmataDataExcel stigmataData in StigmataData.GetInstance().All)
|
||||||
{
|
{
|
||||||
Stigmata stigmata = player.Equipment.AddStigmata(stigmataData.Id);
|
Stigmata stigmata = player.Equipment.AddStigmata(stigmataData.Id);
|
||||||
stigmata.Level = value <= 0 ? (uint)stigmataData.MaxLv : (uint)value;
|
stigmata.Level = value is not null && value <= 0 ? (uint)stigmataData.MaxLv : value is not null ? (uint)value : (uint)stigmataData.MaxLv;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "materials":
|
case "materials":
|
||||||
|
|||||||
Reference in New Issue
Block a user