Commit Graph

114 Commits (openmw-36)

Author SHA1 Message Date
scrawl 3879ce6ac1 Get rid of "player" string checks (Fixes #2216) 10 years ago
dteviot e197f5318b fixing MSVC 2013 warning C4244: & C4305
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
10 years ago
scrawl bea88c3643 Stolen item tracking overhaul part 2 (Fixes #2338) 10 years ago
scrawl 79d2eebe54 Store selected enchant item in savegame (Fixes #1702) 10 years ago
scrawl 0fd5575efe Improve warning message in ContainerStore::readState 10 years ago
scrawl d13335ba40 Ensure the item can be equipped in the given slot when loading inventory 10 years ago
scrawl c65f9cb3c0 Revert "Change save format to store relative equipment index"
This reverts commit 89d9649b50.
10 years ago
scrawl 89d9649b50 Change save format to store relative equipment index
Store the index for the allowedSlots vector instead of the absolute slot index. This will more gracefully handle edge cases like the available slots for an item having changed when loading the game, or the "allows stacking" property having changed. However the main reason this was done is to ease work on the essimporter.
10 years ago
scrawl 235683e449 Remove LightState from openmw save format to streamline inventory loading 10 years ago
scrawl 3912ee2b1d Fix faction rank not being set on items in faction-owned containers 10 years ago
scrawl 1bcc4430e0 Fix owner not getting set on restocked items 10 years ago
MiroslavR ed3a3f717f Handle getdistance on objects inside a container (Fixes #2046) 10 years ago
scrawl 0f8a10f468 Savegame: Set equipment slot for lights (Fixes #1761) 11 years ago
scrawl 9e48d56244 Reset RefNum when copying an object (Fixes #1723) 11 years ago
scrawl 08ce6ed7fb Attempt to restack item after repair or recharge (Fixes #1656) 11 years ago
scrawl 4e71db7081 Savegame: Don't load/save deleted container items. This is currently pointless, and also causes new garbage being added on each load/save cycle: Container stores are first filled from ESM records, then cleared and filled from the savegame. The items from ESM records remain as deleted refs. 11 years ago
scrawl 42ea43c3d1 Fix container scripts not getting removed properly on cell change
Broken by f99eda1a54
11 years ago
scrawl 039398c8ae Basic RefData and CellRef change tracking
Wrapped item charge handling in getItemHealth function
11 years ago
Emanuel Guevel 1e4a854433 Remove static method MWWorld::Class::get(&Ptr)
It was just adding a level of indirection to Ptr.getClass().
All the call were replaced by that instead. The number of lines changed
is important, but the change itself is trivial, so everything should be
fine. :)
11 years ago
scrawl a872c9f83a Feature #1323: handle restocking levelled items 11 years ago
scrawl b4ed828e21 Feature #1323: Implement restocking items (does not handle levelled lists yet) 11 years ago
scrawl f99eda1a54 Fixes #1302: Do not attempt to set OnPcAdd before the script has been added 11 years ago
scrawl d92f95f5bf Fix a stacking issue 11 years ago
scrawl 93b76a603b Fixes #1100: Looting a corpse is no longer considered stealing 11 years ago
Marc Zinnschlag 1b5301eec0 Merge branch 'savedgame'
Conflicts:
	apps/openmw/mwbase/mechanicsmanager.hpp
	apps/openmw/mwbase/soundmanager.hpp
	apps/openmw/mwgui/mapwindow.hpp
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
	apps/openmw/mwsound/soundmanagerimp.hpp
	components/esm/loadcell.cpp
11 years ago
Marc Zinnschlag d2ec3ffdc8 handle equipped items when serialising inventory state 11 years ago
Marc Zinnschlag bcc5894e2d changed implementation functions for container serialisation from free functions to member functions (will need some polymorphism later) 11 years ago
Marc Zinnschlag dd674566a2 store content of containers in saved game files 11 years ago
scrawl 2b15b8b484 Fix gold bugs (Fixes #1145, Fixes #1146) 11 years ago
scrawl 2836c7c927 Do not set owner when adding items to a container, as opposed to NPC/creatures 11 years ago
greye 15d946415e minor cleanup
Removed case folding via std::transform, excessive lowerCase()
replaced with ciEqual().
11 years ago
scrawl 52b9ebff9d Closes #1092: Implement sleep interruption. Fix levelled list flags for creatures. Change World::copyObjectToCell to search for the correct cell. 11 years ago
scrawl 90b92a8f41 Move levelled list code out of ContainerStore 11 years ago
scrawl baf55df7a1 Gold fixes (when did this break?) 11 years ago
scrawl 0f5dc59176 Remove useless dependencies on InventoryWindow for getting player gold. Don't use string literals for gold_001 id, just to be sure. 11 years ago
scrawl 372cd437d1 Add a utility function for counting items in a container 11 years ago
scrawl 098f9712f1 Add getPlayerPtr() utility method. Reduces dependencies a lot. 11 years ago
scrawl 0285d18fc2 Respect items belonging to a faction 11 years ago
Marc Zinnschlag 48a08c4c4d Merge remote-tracking branch 'endorph/master' 11 years ago
Dmitriy 'Endorph' Shkurskiy 9afa8e952e tabs -> spaces 11 years ago
scrawl 2f35e5a04e Stop merchants from autoequipping items sold to them 11 years ago
scrawl dde2cd5d5a Fix some code that still used setCount directly instead of using the ContainerStore interface. Also fix a related annoyance with the interface. 11 years ago
Dmitriy 'Endorph' Shkurskiy 18d4cdb2ac Fix for VS2010-Debug: manual assignment operator and cctor added for MMWorld::ContainerStoreIterator 11 years ago
scrawl 561c661156 Reset starting angle / position when adding world item to a container 11 years ago
scrawl 608bd0f525 Don't copy the base node pointer when adding a world object to a container. Fixes bug #1028 11 years ago
scrawl 56893a097d Don't stack used torches 11 years ago
scrawl bab657fe2b Add a utility function to add items to a ContainerStore by RefID 11 years ago
scrawl 00af6b5617 Use an inventory store listener for animation parts and VFX update instead of updating them directly. Slightly more flexible, reduces InventoryStore dependencies and solves a crash during character creation due to the preview doll's animation not being registered in World. 11 years ago
scrawl 427de69b79 Allow stacking enchanted items when charge is full 11 years ago
scrawl ff7e4174f9 Fix some leftover code that still calculated random magnitude per spell rather than per effect. Major cleanup of InventoryStore: Magic effects are now updated when needed, rather than cached. Also allows to get rid of 'mutable' hacks and non-const method that should be const. Play sounds and particles when equipping a permanent enchantment item. 11 years ago