Allofich
b1be3596dc
Cleanup of #include statements
9 years ago
dteviot
77a1d947cc
extracted MWMechanics::getPlayer()
10 years ago
scrawl
8c810e3620
Move rng to components
10 years ago
dteviot
3f28634d1f
consolidate random number logic
...
Note, I suspect Rng::rollClosedProbability() is not needed. The only difference between it and rollProbability() is that one time in 37k (on Windows), it will give an output of 1.0.
On some versions of Linux, the value of 1.0 will occur about 1 time in 4 billion.
10 years ago
dteviot
ca8c8c6aa4
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
Alexander "Ace" Olofsson
df5a08b6de
Move manualref code out of header
10 years ago
scrawl
4ed3e7bbb7
Enchanting code cleanup
10 years ago
scrawl
cda2eea906
Enchanting: use fEnchantmentConstantDurationMult and fEffectCostMult
10 years ago
scrawl
13c5bd5cc2
Enchanting: fix skill-based cast cost bonus being applied twice
10 years ago
scrawl
ef1b0a191b
Revert "Enchanting: fix inverted self-enchant success chance"
...
It wasn't inverted to begin with. The author of this commit is an idiot.
10 years ago
scrawl
623783cd6a
Enchanting: fix cast cost for "on use" enchantments being set incorrectly
10 years ago
scrawl
ead6bf1601
Enchanting: cast the enchant points for the item to int ( Fixes #2202 )
10 years ago
scrawl
7e10818bdf
Fix uninitialized flags for custom-made spells
10 years ago
scrawl
7252cb63a6
Fix cppcheck issues
10 years ago
scrawl
315b022d2d
Add transfer gold from all services to NPC trade gold pool
11 years ago
scrawl
09607f992e
Enchanting: fix inverted self-enchant success chance ( Fixes #1701 )
11 years ago
scrawl
039398c8ae
Basic RefData and CellRef change tracking
...
Wrapped item charge handling in getItemHealth function
11 years ago
scrawl
a05c8fd3ce
Make applyEnchantment return the record ID instead of modifying Ptr
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
190512156d
Use some more GMSTs for enchanting
11 years ago
scrawl
d0500e8124
Some unneeded includes cleanup
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
098f9712f1
Add getPlayerPtr() utility method. Reduces dependencies a lot.
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
scrawl
bab657fe2b
Add a utility function to add items to a ContainerStore by RefID
11 years ago
scrawl
800a2845b0
Add Bound & Summon effects (will need some adjustments later)
11 years ago
scrawl
74e42a2d02
Add missing skill increases for Enchant skill
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
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
scrawl
7dc30a01cd
Some changes suggested by cppcheck
12 years ago
Miroslav Puda
dc17fa1636
Removal of duplicit enumeration and unnecessary conditions.
12 years ago
Miroslav Puda
7a4a386cbe
Removal of tab characters.
12 years ago
Miroslav Puda
b40e24c50c
Refactorization
12 years ago
Miroslav Puda
4e17bc1499
Fix for display of cast cost decimal value
12 years ago
Miroslav Puda
9a9b075a02
Correct cast cost for enchantments.
12 years ago
Miroslav Puda
1c7b94e94f
Switching in nextCastStyle() is now based on enum CastingStyle.
12 years ago
Miroslav Puda
252a1d9223
Replacement of some magical constants
12 years ago
Miroslav Puda
4788b5e226
Better formula for enchantment cost and code refactorization.
12 years ago
Miroslav Puda
56edc1b213
Correction of getting spell range "Target".
12 years ago
scrawl
78596cad83
Fix enchantment points value
12 years ago
Glorf
194ca2584d
Small azura's star fix
12 years ago
Glorf
08e9bb0236
Another small enchanting fix
12 years ago
Glorf
ae3e4ecf8b
Finished enchanting
12 years ago
Glorf
7b7d3353a6
Exception for enchanting with Azura Star
12 years ago
Glorf
369cf0b4ca
Enchanting price mechanics
12 years ago
Glorf
1bff6ed872
Enchaning values import, fixed constness
12 years ago
Glorf
d29a42dcbe
Fixed enchanting mechanics
12 years ago
Glorf
7dbc779c3a
Self-enchanting mechanics
12 years ago
Glorf
86275e5bd4
Some enchanting fixes
12 years ago