Alexander "Ace" Olofsson
7d4125d97f
Fixes for building with unity build
9 years ago
scrawl
5aa33fde43
Include cleanup
9 years ago
scrawl
fd48c1d6f4
Make the Equip script function "use" items (drink potion, use alchemy, etc)
9 years ago
dteviot
77a1d947cc
extracted MWMechanics::getPlayer()
10 years ago
scrawl
67bd6cd708
Remove empty line at the beginning of files
...
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
10 years ago
Koncord
6c3c85f0d4
Fix indent
...
Remove misc.hpp in containerstore.cpp
10 years ago
Koncord
7a86c8d8b6
Fix OpAddItem, OpGetItemCount and OpRemoveItem.
10 years ago
scrawl
3879ce6ac1
Get rid of "player" string checks ( Fixes #2216 )
10 years ago
Alexander "Ace" Olofsson
fce404acc5
Remove some including of mwbase/world.hpp
...
Since ref.hpp is rather well used in OpenMW-CS this should help compile times there
10 years ago
Alexander "Ace" Olofsson
d3128a12b6
Remove a large include form mwbase/windowmanager.hpp
10 years ago
scrawl
579f5d232f
Move interactive messageBox to separate function
10 years ago
scrawl
8097d9801d
Fix HasSoulgem function to return number of soulgems
10 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
c8c0e5de38
Fixed code issues found with unity build. Missing include guards, duplicated functions, ...
11 years ago
Marc Zinnschlag
367919200f
moved CellRefList into a separate file
11 years ago
Emanuel Guevel
8824af30b4
Allow to display message box outside of dialogue window
11 years ago
scrawl
589fbbd871
Issue #777 : Create InventoryStore for creatures with weapons/shields
11 years ago
scrawl
c04a8afc8b
Make sure onPcEquip is also set for Equip script instruction
11 years ago
scrawl
b8583124e0
Correction for RemoveSoulgem instruction
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
b490e56ba1
Remove redundant setLocals (already done by ContainerStore::add)
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
Emanuel Guevel
aefa54d72d
Pass item count to ManualRef constructor
...
This remove the need to call setCount in multiple places.
11 years ago
Emanuel Guevel
10abb9d297
Call ContainerStore::remove() to remove items from inventory
...
Make placeObject() and dropObjectOnGround() in MWWorld to copy objects
(and indicate it clearly).
Enchanting an item now unequips it.
11 years ago
Chris Robinson
2bac4566c0
Merge remote-tracking branch 'PotatoesMaster/werewolf' into werewolf
...
Conflicts:
apps/openmw/mwmechanics/actors.cpp
apps/openmw/mwscript/statsextensions.cpp
12 years ago
Emanuel Guevel
48d2554ac3
Auto-equip when items are added to the inventory
...
We limit that to armor pieces and clothing items.
No auto-equiping for the player nor werewolves.
12 years ago
Alex
de1f423bd7
initial move of script opcodes and registerExtensions functions to components/compiler
12 years ago
kpp
24d619d6b4
Changes the logic of WindowManager::messageBox()
...
Fixes removeItem
Fixes addItem
12 years ago
scrawl
e7af718b55
Remove unnecessary WindowManager::messageBox arguments
12 years ago
scrawl
52d0f0b750
Fixed OpAddItem, OpRemoveItem
12 years ago
scrawl
e1ca0a15ae
Add message box when item is added to player's inventory
12 years ago
Tom Mason
f785659297
Implemented OnPCAdd special variable
...
Had to edit OpAddItem in miscextensions.cpp, as local variables were not being initialised
for items added through it.
Does not get reset on drop, as per original morrowind.
12 years ago
greye
7e0713f6c4
fix string case update
12 years ago
eduard
69d9d22579
comparestring
12 years ago
eduard
c85400b809
Merge https://github.com/zinnschlag/openmw into comparestring
...
Conflicts:
apps/openmw/mwdialogue/dialoguemanagerimp.cpp
apps/openmw/mwworld/worldimp.cpp
components/esm_store/reclists.hpp
components/misc/stringops.hpp
12 years ago
eduard
8545667bbd
string compare and tolower
12 years ago
Tom Mason
ad9b86058b
replaced explicit text with GMST entries, thanks to zinnschlag
12 years ago
Tom Mason
ba2301a156
removed redundant code thanks to scrawl
12 years ago
Tom Mason
716fbbbd74
messageboxes during dialogue show up in dialogue window, and messageboxes are generated when an item is removed from inventory
12 years ago
scrawl
398eecc35e
GetWeaponType fix
12 years ago
scrawl
00e46addc2
GetArmorType fix
12 years ago
scrawl
1ccad32877
GetWeaponType
12 years ago
scrawl
e68dc19256
GetCurrentTime, HasSoulGem
12 years ago
scrawl
be82d1452f
HasItemEquipped
12 years ago
scrawl
a596d23203
GetArmorType
12 years ago
scrawl
d54ed557bf
Equip
12 years ago
greye
7606ebafd6
resolving conflicts, minor update
12 years ago