mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:56:39 +00:00 
			
		
		
		
	Smash case for manual reference IDs as well, consistent with references in data files
This commit is contained in:
		
							parent
							
								
									557652112f
								
							
						
					
					
						commit
						710a1e2f37
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		|  | @ -72,7 +72,7 @@ void InventoryItemModel::update() | |||
|         // NOTE: Don't show WerewolfRobe objects in the inventory, or allow them to be taken.
 | ||||
|         // Vanilla likely uses a hack like this since there's no other way to prevent it from
 | ||||
|         // being shown or taken.
 | ||||
|         if(item.getCellRef().mRefID == "WerewolfRobe") | ||||
|         if(item.getCellRef().mRefID == "werewolfrobe") | ||||
|             continue; | ||||
| 
 | ||||
|         ItemStack newItem (item, this, item.getRefData().getCount()); | ||||
|  |  | |||
|  | @ -425,7 +425,7 @@ namespace MWGui | |||
|             // NOTE: Don't allow users to select WerewolfRobe objects in the inventory. Vanilla
 | ||||
|             // likely uses a hack like this since there's no other way to prevent it from being
 | ||||
|             // taken.
 | ||||
|             if(item.getCellRef().mRefID == "WerewolfRobe") | ||||
|             if(item.getCellRef().mRefID == "werewolfrobe") | ||||
|                 return MWWorld::Ptr(); | ||||
|             return item; | ||||
|         } | ||||
|  |  | |||
|  | @ -64,7 +64,7 @@ namespace MWWorld | |||
| 
 | ||||
|                 // initialise
 | ||||
|                 ESM::CellRef& cellRef = mPtr.getCellRef(); | ||||
|                 cellRef.mRefID = name; | ||||
|                 cellRef.mRefID = Misc::StringUtils::lowerCase(name); | ||||
|                 cellRef.mRefnum = -1; | ||||
|                 cellRef.mScale = 1; | ||||
|                 cellRef.mFactIndex = 0; | ||||
|  |  | |||
|  | @ -1967,11 +1967,11 @@ namespace MWWorld | |||
|         { | ||||
|             InventoryStore &inv = actor.getClass().getInventoryStore(actor); | ||||
| 
 | ||||
|             inv.equip(InventoryStore::Slot_Robe, inv.ContainerStore::add("WerewolfRobe", 1, actor), actor); | ||||
|             inv.equip(InventoryStore::Slot_Robe, inv.ContainerStore::add("werewolfrobe", 1, actor), actor); | ||||
|         } | ||||
|         else | ||||
|         { | ||||
|             actor.getClass().getContainerStore(actor).remove("WerewolfRobe", 1, actor); | ||||
|             actor.getClass().getContainerStore(actor).remove("werewolfrobe", 1, actor); | ||||
|         } | ||||
| 
 | ||||
|         if(actor.getRefData().getHandle() == "player") | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue