Commit Graph

41 Commits (6cb5ac6e63fb9bf6b27e827a227161f6dbc82f0a)

Author SHA1 Message Date
Andrei Kortunov c77c50e92b Make Equip console command to bypass most of restrictions (bug #4460) 6 years ago
scrawl edfcb45ad7 Fix crash when onPcEquip script removes the equipped item (Fixes #3016) 9 years ago
dteviot 77a1d947cc extracted MWMechanics::getPlayer() 9 years ago
scrawl d034a079e6 Allow equipping twohanded weapon and shield at the same time (Fixes #1785)
The shield can be equipped, meaning armor rating and item enchantments apply, but can not be blocked with.
10 years ago
scrawl c0f1449004 Cycle with equipped items if all slots are occupied (Fixes #1395) 10 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. :)
10 years ago
scrawl 589fbbd871 Issue #777: Create InventoryStore for creatures with weapons/shields 10 years ago
Marc Zinnschlag 63cd70f810 some junk removal 10 years ago
scrawl 7983b07b10 Get bk_treasuryreport script to work properly:
- OnPcEquip needs to be set on *using* any item, not just equipping
 - Handle PcSkipEquip
 - Execute item's script once immediately after setting OnPcEquip
 - Do not set OnPcEquip when an item that has skipped equipping sets pcskipequip back to 0 and gets equipped
10 years ago
scrawl 098f9712f1 Add getPlayerPtr() utility method. Reduces dependencies a lot. 10 years ago
scrawl b8c358df63 Fix a bug with equipping using the quick keys: when item is already equipped, equipping it again would cause the slot to get unequipped first, possibly restacking and destroying the Ptr that was supposed to be equipped in the first place 11 years ago
scrawl 60bec03987 Rename variables called 'slots' to work around wrong code parsing in QT Creator. 11 years ago
Emanuel Guevel 2786530430 Edit InventoryStore::equip() to call the new unequipSlot function…
…to unequip previously equipped item.
11 years ago
Chris Robinson 48c07fbd98 Remove some unnecessary fields from Ptr 11 years ago
scrawl 2693b78536 Add initial player inventory when new game is started 11 years ago
Glorf ad49d1ecab Sixth minor fix 11 years ago
Glorf bd93e63150 Fifth minor fix 11 years ago
Glorf 248fff6eb7 Fourth minor fix 11 years ago
Glorf 44ef02eb99 Third minor fix 11 years ago
Glorf 46925e93a6 Second minor fix 11 years ago
Glorf 623c2c8201 Minor fix 11 years ago
Glorf 7c22e123f4 Bugfix #691 changes 11 years ago
Glorf 48d9885554 Started bugfix #691 11 years ago
Glorf 900c2cfa81 Minor bugfix #646 change 11 years ago
Glorf d25c838e1d Bugfix #646 11 years ago
scrawl e7af718b55 Remove unnecessary WindowManager::messageBox arguments 11 years ago
scrawl eeb60edb65 Properly check for the Beast flag instead of hardcoding beast races 11 years ago
scrawl 543f573739 Fix the firstguard armor mod 11 years ago
Marc Zinnschlag 86fb3574a0 Merge remote-tracking branch 'wheybags/master' into next 11 years ago
Tom Mason ac112ef972 refactored special variable code 11 years ago
Marc Zinnschlag 85697e4628 reverted to C++03 11 years ago
Tom Mason 0fc5ee5149 allow OnPCEquip special variable to be of any type 11 years ago
Tom Mason 09f9557ecb Implemented OnPCEquip special variable 11 years ago
Tom Mason 375961fe5e small fix 12 years ago
Tom Mason b035a5aa4a beast races cannot equip anything they oughtn't to be able to equip 12 years ago
Tom Mason 62a2ba1cc6 beast races cannot equip shoes/boots 12 years ago
Tom Mason 135f0870f7 in actionequip, was ignoring actor param, and always using player 12 years ago
Marc Zinnschlag 8c2b4f996c Issue #370: replaced custom target handling in equip action with base class implementation 12 years ago
Marc Zinnschlag 78fe6fdce5 Issue #351: Refactoring Action class 12 years ago
Marc Zinnschlag 4c39fefd1e Issue #107: World is accessed only through the interface class from now on; some include cleanup 12 years ago
scrawl 0f1e09d2c1 make Class::use method return an equip action for equippable items, add sound for equipping 12 years ago