mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-09-11 21:45:26 -04:00
Merge pull request #1526 from madsboddum/chore/items/remove-nge-static-item-support
Removed placeholder classes for NGE static item types
This commit is contained in:
+1
-14
@@ -1,5 +1,5 @@
|
||||
/***********************************************************************************
|
||||
* Copyright (c) 2023 /// Project SWG /// www.projectswg.com *
|
||||
* Copyright (c) 2024 /// Project SWG /// www.projectswg.com *
|
||||
* *
|
||||
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
|
||||
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
|
||||
@@ -74,14 +74,12 @@ class StaticItemLoader internal constructor() : DataLoader() {
|
||||
|
||||
val armorInfo: ArmorItemInfo?
|
||||
val consumableInfo: ConsumableItemInfo?
|
||||
val costumeInfo: CostumeItemInfo?
|
||||
val crystalInfo: CrystalItemInfo?
|
||||
val grantInfo: GrantItemInfo?
|
||||
val genericInfo: GenericItemInfo?
|
||||
val itemInfo: GenericItemInfo?
|
||||
val objectInfo: ObjectItemInfo?
|
||||
val schematicInfo: SchematicItemInfo?
|
||||
val storytellerInfo: StorytellerItemInfo?
|
||||
val weaponInfo: WeaponItemInfo?
|
||||
val wearableInfo: WearableItemInfo?
|
||||
|
||||
@@ -90,14 +88,12 @@ class StaticItemLoader internal constructor() : DataLoader() {
|
||||
|
||||
this.armorInfo = if ("armor" == type) ArmorItemInfo(set, colorArray) else null
|
||||
this.consumableInfo = if ("consumable" == type) ConsumableItemInfo(set) else null
|
||||
this.costumeInfo = if ("costume" == type) CostumeItemInfo(set) else null
|
||||
this.crystalInfo = if ("crystal" == type) CrystalItemInfo(set, colorArray) else null
|
||||
this.grantInfo = if ("grant" == type) GrantItemInfo(set) else null
|
||||
this.genericInfo = if ("generic" == type) GenericItemInfo(set, colorArray) else null
|
||||
this.itemInfo = if ("item" == type) GenericItemInfo(set, colorArray) else null
|
||||
this.objectInfo = if ("object" == type) ObjectItemInfo(set, colorArray) else null
|
||||
this.schematicInfo = if ("schematic" == type) SchematicItemInfo(set) else null
|
||||
this.storytellerInfo = if ("storyteller" == type) StorytellerItemInfo(set) else null
|
||||
this.weaponInfo = if ("weapon" == type) WeaponItemInfo(set) else null
|
||||
this.wearableInfo = if ("wearable" == type) WearableItemInfo(set, colorArray) else null
|
||||
}
|
||||
@@ -148,12 +144,6 @@ class StaticItemLoader internal constructor() : DataLoader() {
|
||||
|
||||
}
|
||||
|
||||
class CostumeItemInfo(set: SdbResultSet) {
|
||||
|
||||
val buffName: String = set.getText("buff_name")
|
||||
|
||||
}
|
||||
|
||||
class CrystalItemInfo(set: SdbResultSet, colorArray: SdbIntegerColumnArraySet) {
|
||||
val color: IntArray = Arrays.copyOfRange(colorArray.getArray(set), 0, 5)
|
||||
get() = field.clone()
|
||||
@@ -208,9 +198,6 @@ class StaticItemLoader internal constructor() : DataLoader() {
|
||||
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
class StorytellerItemInfo(set: SdbResultSet)
|
||||
|
||||
class WeaponItemInfo(set: SdbResultSet) {
|
||||
|
||||
val minDamage: Int = set.getInt("min_damage").toInt()
|
||||
|
||||
+2
-16
@@ -1,5 +1,5 @@
|
||||
/***********************************************************************************
|
||||
* Copyright (c) 2023 /// Project SWG /// www.projectswg.com *
|
||||
* Copyright (c) 2024 /// Project SWG /// www.projectswg.com *
|
||||
* *
|
||||
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
|
||||
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
|
||||
@@ -57,14 +57,12 @@ object StaticItemCreator {
|
||||
applyAttributes(obj, info.wearableInfo)
|
||||
applyAttributes(obj, info.weaponInfo)
|
||||
applyAttributes(obj, info.consumableInfo)
|
||||
applyAttributes(obj, info.costumeInfo)
|
||||
applyAttributes(obj, info.crystalInfo)
|
||||
applyAttributes(obj, info.grantInfo)
|
||||
applyAttributes(obj, info.genericInfo)
|
||||
applyAttributes(obj, info.itemInfo)
|
||||
applyAttributes(obj, info.objectInfo)
|
||||
applyAttributes(obj, info.schematicInfo)
|
||||
applyAttributes(obj, info.storytellerInfo)
|
||||
}
|
||||
|
||||
private fun applyAttributes(obj: TangibleObject, info: StaticItemLoader.ArmorItemInfo?) {
|
||||
@@ -155,12 +153,6 @@ object StaticItemCreator {
|
||||
|
||||
applyItemValue(info.value, obj)
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
private fun applyAttributes(obj: TangibleObject, info: StaticItemLoader.CostumeItemInfo?) {
|
||||
// if (info == null)
|
||||
// return;
|
||||
}
|
||||
|
||||
private fun applyAttributes(obj: TangibleObject, info: StaticItemLoader.CrystalItemInfo?) {
|
||||
if (info == null)
|
||||
@@ -229,13 +221,7 @@ object StaticItemCreator {
|
||||
// if (info == null)
|
||||
// return;
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
private fun applyAttributes(obj: TangibleObject, info: StaticItemLoader.StorytellerItemInfo?) {
|
||||
// if (info == null)
|
||||
// return;
|
||||
}
|
||||
|
||||
|
||||
private fun applySkillMods(obj: TangibleObject, skillMods: Map<String, Int>) {
|
||||
for ((key, value) in skillMods) {
|
||||
obj.adjustSkillmod(key, value, 0)
|
||||
|
||||
Reference in New Issue
Block a user