Commit Graph

88 Commits

Author SHA1 Message Date
kaelima
b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click
da03bbbdab Core: Yet more cleanups in codestyle... 2011-06-12 02:06:07 +02:00
click
c77aa6e846 Core: And some more cleanups... 2011-06-12 02:00:43 +02:00
click
f16df538ee Core: More codestyle cleanups 2011-06-12 01:47:45 +02:00
click
158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
tobmaps
fd08b0060c Core/Commands: Localized npc name for commands .npc say, .npc yell, .npc whisper 2011-05-30 20:47:33 +07:00
Shauren
ac4ed1efdf Core/Spells: Moved setting UNIT_CREATED_BY_SPELL out of spell effect handlers and sending SMSG_TOTEM_CREATED into Totem class 2011-05-19 22:27:18 +02:00
Shauren
49a81557fa Core/Units: Fixed totem timer UI
Closes #298
Closes #1595
2011-05-19 18:50:57 +02:00
leak
1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
leak
c51c817a45 Core/ObjectMgr: Refactor sCreatureStorage 2011-04-28 22:57:08 +02:00
leak
e2e9431ca3 Core/ObjectMgr: Refactor sGOStorage 2011-04-28 22:54:30 +02:00
Azazel
5357b1ba77 Core/CharDB Cleanup: alter corpse table making column names lowerCamel and move all queries to prepared statements.
NOTICE: column can be named `guid` only if it represents character guid. All other guids will be renamed to reflect their purpose (like corpseGuid in this specific case)
2011-04-11 14:39:00 +06:00
Shauren
a24deaf980 Core/Objects: Fixed HasInLine and IsInBetween checks on certain compilers 2011-02-15 17:09:46 +01:00
Manuel Carrasco
6b2ffc9039 Core/GuardAI: Guards don't evade if the target casts Vanish and also can detect players with Feign Death.
Core/Scripts: Moved scripts from ScriptedGuardAI to guards.cpp
Core/Creature: Removed custom npcflags UNIT_NPC_FLAG_GUARD (now moved to flag_extras) and UNIT_NPC_FLAG_OUTDOORPVP (not used)

Thanks to Kaelima, Xanadu, Shauren and linencloth.

Signed-off-by: Manuel Carrasco <manue.l@live.com.ar>
2011-02-10 22:36:35 -03:00
Machiavelli
efe0ed3194 Core/Entities: Fix a silly typo in Object::AddExtraMovementFlag 2011-01-06 22:54:33 +01:00
Machiavelli
957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00
Machiavelli
6b12ec1f3e Fix build from 68c6189201 2010-12-29 12:09:57 +01:00
Shauren
928443d899 Core: Removed more operator workarounds for ACE_Singleton (missed previously because of inconsistent naming)
--HG--
branch : trunk
2010-12-23 23:25:44 +01:00
Shauren
0f3b9019a8 Core: Get rid of dirty operator workaround for ACE_Singleton class implementation
--HG--
branch : trunk
2010-12-22 21:25:23 +01:00
Shauren
7b4e1c6387 Core/ObjectMgr: Static members are no longer accessed through singleton
--HG--
branch : trunk
2010-12-22 20:23:47 +01:00
Shauren
82f45966fc Core/Unit: Renamed addUnitState/hasUnitState/clearUnitState to AddUnitState/HasUnitState/ClearUnitState
Core/Vehicles: Allow the vehicle to always damage the passenger (removed unneded dbc hacks from scripts)

--HG--
branch : trunk
2010-12-17 13:43:24 +01:00
Spp
ee3fd3ebeb Core/Vehicles: Fix facing adjustment. Patch by beberlescaraber
closes issue #1810
updates issue #4714

--HG--
branch : trunk
2010-12-17 13:22:17 +01:00
azazel
d2d62eab50 Cleanup: implemented helper methods for manipulating percentage calculation and used it where appropriate (plus fixed some other warnings).
NOTE: Initially I just wanted to fix some warnings, but noticed that there is no common method for percentage calculation and various formulas are used many time in the code making it difficult to read and understand what the code actually does. So, I introduced several template methods for calculating percent values and adding those values to the original base. I replaced all the raw calculations throughout the code where found, but I could have missed something or could have made a mistake. So, please report any strange behaviour after this commit.
If you ask me why I did it: for the sake of consistency and exact understanding what code means. If you see CalculatePct method, you clearly understand, that it find the value of x percent of y. And you can easily express, for example, spell behviour "reduces smth by x%" by the means of a method instead of recalling school maths.

--HG--
branch : trunk
2010-12-11 20:37:38 +06:00
linencloth
e87223b453 Core/WorldObjects: Destroy for nearby players before removing from world
Closes issue 4806

--HG--
branch : trunk
2010-11-16 21:17:49 +01:00
linencloth
0aad81fbbf Core/WorldObjects: Prevent most notifiers to be used to visit grids/cells using an invalid object
Closes issue 4765
Closes issue 4783

--HG--
branch : trunk
2010-11-14 23:53:14 +01:00
linencloth
1ec41c754b Core/Player: Fix sight range
Closes issue 4772

--HG--
branch : trunk
2010-11-14 17:49:10 +01:00
Shauren
72eff3dd0d Fixed recently added compile warnings
--HG--
branch : trunk
2010-11-13 21:21:43 +01:00
linencloth
bf888285aa Core:
- Redesigned stealth and invisibility handling
  - Implemented the handling of multiple stealth types
- Implemented fake inebriation
- The message deliverer no longer sends packets from a non-visible source
  - The server won't send that much garbage which just takes bandwith
  - It won't be possible to use cheats to detect invisible objects
- Removed a lot of checks for the Z-coord
  - Fixes visibility problems happening while flying
- Limited the grid activation range of creatures to use less resources
- Implemented Shroud of Death
- Implemented increased visibility range for active objects
- Removed visibility check at spellhit (only sanctuary effects should prevent it)
(And a lot of other changes...)

Closes issue 4208
Closes issue 3049
Closes issue 2097
Closes issue 2198
Closes issue 2384
Closes issue 2197
Closes issue 2319

--HG--
branch : trunk
2010-11-13 17:18:09 +01:00
linencloth
d9d1ec3670 Core: optimize string splitting
- Mainly affects item loading performance
  - Reduces guild loading time a lot

--HG--
branch : trunk
2010-10-21 16:56:51 +02:00
Rat
ee32b4b39a Core/Objects: added ToUnit(), ToGameObject() (will be used in future)
Core/Unit:
- added SetFacing() function, using proper packet implementetion (spline type)
- added GetAuraCount() function (will be used in future)
Core/Creature: renamed one unknown type_flag

--HG--
branch : trunk
2010-10-17 21:14:08 +02:00
runningnak3d
2a06d6a363 Core/Misc: Remove some not needed code that got through in the merge.
--HG--
branch : trunk
2010-10-09 01:57:04 -06:00
runningnak3d
7a9a9426a7 Misc/CodeStyle: Apply proper code style to c746695313
Thanks Paradox

--HG--
branch : trunk
2010-10-09 01:48:32 -06:00
runningnak3d
a667faaa94 Core/GameObject: Create enum GameObjectDynamicLowFlags instead of using hard
coded flags.
Author: NoFantasy

--HG--
branch : trunk
2010-10-08 18:38:58 -06:00
runningnak3d
86dbbe4afe Core/Misc: Fix logic problem.
Thanks Zor

--HG--
branch : trunk
2010-10-08 18:00:43 -06:00
runningnak3d
26d0598b9a Core/WorldPacket: Only activate GOs if in GM mode and not make them sparkle.
Got reports of blindness in GM mode.

--HG--
branch : trunk
2010-10-08 17:48:44 -06:00
runningnak3d
89833567d2 Core/WorldPacket: Add support for generic (type 5) GOs sparkling if objective
of quest.
Author: NoFantasy

--HG--
branch : trunk
2010-10-06 16:36:50 -06:00
runningnak3d
9e322ce69f Core/WorldPacket: Update packet to make type 10 GOs sparkle when objective of
a quest.
Author: NoFantasy

--HG--
branch : trunk
2010-10-06 16:19:12 -06:00
click
613b81f36f REALLY fix the CRLF-crap...
--HG--
branch : trunk
2010-10-07 15:54:07 +02:00
click
f0c4241ea4 Remove the accidental additions of CRLF-crap from the header updates
--HG--
branch : trunk
2010-10-07 15:35:36 +02:00
click
a67d7c9afd Copyright header updates - part 3... (and some whitespace cleanups)
--HG--
branch : trunk
2010-10-07 14:00:52 +02:00
click
8ea4b32fab Update copyright headers (following the same standard in all files = good)
--HG--
branch : trunk
2010-10-07 12:41:56 +02:00
silinoron
b21490357b Core/Object: Add an assert in Object::RemoveFlag to help explain the crash introduced in r2969543fa565b71242cb471e0e85f39203f2bce9
The crash is NOT fixed yet.

--HG--
branch : trunk
2010-09-21 19:26:59 -07:00
linencloth
d8a854d6e0 Core: Cleanup locale handling.
It also fixes the recent problem of strange strings.

--HG--
branch : trunk
2010-09-17 07:04:29 +02:00
click
bf664b7a44 Cleanup/Core: Remove whitespace and tabs
--HG--
branch : trunk
2010-09-12 01:40:27 +02:00
silinoron
5179d3149a Core/Game: Fix remaining warnings on windows (and most likely almost all of the ones on *nix)
--HG--
branch : trunk
2010-09-03 21:55:57 -07:00
Spp
849ae84f5b Core: Fix more warnings and fix compile under linux 64
--HG--
branch : trunk
2010-08-31 10:23:22 +02:00
Spp
405f312918 Core: Fix more warnings
--HG--
branch : trunk
2010-08-30 15:25:15 +02:00
Liberate
a96d884bf8 Revert unintended change to UpdateFields.h. This file should NEVER be changed. My mistake.
--HG--
branch : trunk
2010-08-27 18:38:48 +02:00
Liberate
9bd804dece Updates the arena rating system to use Matchmaker Rating.
The arena_team_stats sql in this commit sets all ratings to 0.
You start with 0 Team Rating and 1500 Matchmaker Rating.
Personal rating is moved to character_arena_stats, and will not reset when disbanding an arena team.
This new system is based on all the info I could get, but Blizzard didn't leak much info about the new system.
At least this system is really close to the official system.
Any issues found should be reported in an issue.
Huge thanks go to Aokromes for the intensive testing he has done with me.
Also thanks to Parzival for hearing me out and giving his ideas.
Fixes issue #3189

--HG--
branch : trunk
2010-08-27 18:18:26 +02:00
QAston
3fcb7dd643 *Backout r9c4be12837.
--HG--
branch : trunk
2010-08-26 22:05:57 +02:00