-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Changelog 1.1
marksamman edited this page Nov 18, 2014
·
38 revisions
=====================
- The following item attributes can now be customized using setAttribute for items: name, article, pluralname, weight, attack, defense, extradefense, armor, hitchance and shootrange.
- Increased accuracy of scheduled events
- Optimized dispatcher and scheduler code
- Using integers instead of floating point numbers for item weight and player capacity
- Fixed a rounding bug with the formula for magic level offline training
- Fixed a bug allowing players to equip two-handed weapons with a shield when using classic equipment slots.
- Use of more C++11 features:
- final/override
- emplace for map insertions
- Remove virtual specifier from all functions that aren't being overridden
-
Breaking change: Creature userdata (creature) is now passed to every event callback instead of creature id (cid).
- This also applies for all subclasses; Monster, NPC and Player.
- Events
- Creature
- onChangeOutfit
- onAreaCombat
- onTargetCombat
- Player
- onGainSkillTries
- Creature
- New functions
- item:hasAttribute(key)
- itemType:getClientId()
- itemType:getCharges()
- itemType:getHitChange()
- itemType:getShootRange()
- Updated scripts to utilize userdata objects more efficiently