From cac61cfdd75d81ef543497fdd2bb141f40b5d0cc Mon Sep 17 00:00:00 2001 From: dddushesss <37773701+dddushesss@users.noreply.github.com> Date: Tue, 11 Jan 2022 07:02:07 +0300 Subject: [PATCH] item fixes --- Assets/Resources/Data/ItemData.asset | 15 +++------------ Assets/Scripts/GameUI/PlayerInventoryView.cs | 16 +++++++++------- Assets/Scripts/Items/Building.cs | 4 ++-- Assets/Scripts/Items/Item.cs | 2 +- Assets/Scripts/Items/ItemFabric.cs | 14 +++++++++----- Assets/Scripts/Items/ItemView.cs | 7 ++++--- Assets/Scripts/Units/Unit.cs | 4 ++-- Assets/Scripts/Units/Views/UnitView.cs | 2 +- 8 files changed, 31 insertions(+), 33 deletions(-) diff --git a/Assets/Resources/Data/ItemData.asset b/Assets/Resources/Data/ItemData.asset index e3731aeb..3792713c 100644 --- a/Assets/Resources/Data/ItemData.asset +++ b/Assets/Resources/Data/ItemData.asset @@ -14,19 +14,10 @@ MonoBehaviour: m_EditorClassIdentifier: items: - item: {fileID: 11400000, guid: e7adbedb55c5db341a823370b696f709, type: 2} - iconPrefab: {fileID: 3197816592181874056, guid: 2704c4f795b0d7748a3e3fa53be4d893, - type: 3} - icon: {fileID: 21300000, guid: caf8bc0311dd2fc4ca1528a82a063754, type: 3} - _spawnChance: 0.581 + _spawnChance: 0 - item: {fileID: 11400000, guid: 62849ddbcd32e834887aac5eb3d98db0, type: 2} - iconPrefab: {fileID: 8639522512577941448, guid: 7b6a7f64e52da514d88aa97ad8f863df, - type: 3} - icon: {fileID: 21300000, guid: 35be128594dcdce48b5d8e5317b38ed9, type: 3} - _spawnChance: 0.67 + _spawnChance: 0 - item: {fileID: 11400000, guid: ef628c3158b0ea34bb919ca105507009, type: 2} - iconPrefab: {fileID: 3197816592181874056, guid: f0b68f1afd77d7741a0fe8ff5ba25a77, - type: 3} - icon: {fileID: 21300000, guid: b7771b47a72ca7947bf18f664e53a983, type: 3} - _spawnChance: 0.921 + _spawnChance: 1 fromTimeSpawn: 2.93 toTimeSpawn: 10 diff --git a/Assets/Scripts/GameUI/PlayerInventoryView.cs b/Assets/Scripts/GameUI/PlayerInventoryView.cs index 4650cf5e..19f6d048 100644 --- a/Assets/Scripts/GameUI/PlayerInventoryView.cs +++ b/Assets/Scripts/GameUI/PlayerInventoryView.cs @@ -15,19 +15,20 @@ namespace GameUI private List