Resetting fixrequirements if an item is broken more than once, launcher & selecting graphics mode, some new sounds

This commit is contained in:
Regalis
2015-07-20 14:28:34 +03:00
parent fb0e8ea54c
commit 4aa3d9d7ee
44 changed files with 3781 additions and 36 deletions
+3 -2
View File
@@ -53,7 +53,8 @@ namespace Subsurface
GUIComponent component = reqFrame.children.Find(c => c.UserData as string == itemName);
GUITextBlock text = component as GUITextBlock;
bool itemFound = (character.Inventory.items.FirstOrDefault(i => i !=null && i.Name == itemName) != null);
Item item = character.Inventory.items.FirstOrDefault(i => i !=null && i.Name == itemName);
bool itemFound = (item != null);
if (!itemFound) success = false;
@@ -178,7 +179,7 @@ namespace Subsurface
CreateGUIFrame(item);
}
UpdateGUIFrame(item, character);
UpdateGUIFrame(item, character);
frame.Update((float)Physics.step);
frame.Draw(spriteBatch);
}