Commit graph

48 commits

Author SHA1 Message Date
michalpolko
f2e78cdded [11039] As of Season 6 and later, all teams below 1500 rating will earn points as if they were a 1500 rated team
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-18 16:49:05 +03:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
Deleterios
549b44d8ec [10664] Rename arena_team_stats fields for better fit to stored values.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 02:37:10 +03:00
mns
869acb2a24 [10499] Fixed typo at copy-paste in ArenaTeam::BroadcastEvent
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-18 02:34:27 +04:00
cipherCOM
1ccf1ccd86 [10413] Add some missing class/struct forward declarations and includes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-08-27 23:55:57 +04:00
VladimirMangos
5fd06abf44 [10379] More wide use ObjectGuid in arena team code.
As always in this commits line fixes for uint32->uint64 guid assigns.
2010-08-19 12:22:45 +04:00
fdb_
384915b0d0 [10245] Allow have custom starting area team/personal rating.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-22 10:29:59 +04:00
VladimirMangos
722135b326 [9838] More log filters and macro uses.
* LogFilter_Weather
* LogFilter_PeriodicAffects
* LogFilter_PlayerMoves
* LogFilter_SQLText
* LogFilter_AIAndMovegens
* LogFilter_PlayerStats
2010-05-05 18:46:10 +04:00
VladimirMangos
6487c24f29 [9545] Rename ObjectDefines.h -> ObjectGuid.h
Also move unrelated generic defines to Common.h
2010-03-07 20:05:32 +03:00
AlexDereka
ebfb0f9835 [9389] Cleanup config data. Use proper names and expected types. 2010-02-15 15:29:06 +03:00
tomrus88
2151704669 [9358] Not use PLAYER_FIELD_ARENA_TEAM_INFO_1_1 directly. 2010-02-11 19:30:44 +03:00
tomrus88
0bd88dd55a [9353] Some fixes to guild/arenateam events. 2010-02-10 21:14:23 +03:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
VladimirMangos
fe1fae46ee [8830] Restore build at *nix. Make MAKE_PAIR* users includes explicit.
Comment for recently added field also.
2009-11-18 23:57:20 +03:00
XTZGZoReX
0734adb746 [8789] Rename several singleton macros to use more consistent names.
* objmgr -> sObjectMgr
 * spellmgr -> sSpellMgr
 * WaypointMgr -> sWaypointMgr
 * poolhandler -> sPoolMgr
 * objaccessor -> sObjectAccessor
 * mapmgr -> sMapMgr
 * sInstanceSaveManager -> sInstanceSaveMgr
 * ticketmgr -> sTicketMgr
 * CreatureEAI_Mgr -> sEventAIMgr
 * auctionmgr -> sAuctionMgr
 * achievementmgr -> sAchievementMgr
2009-11-08 12:11:34 +01:00
balrok
64848ac380 [8780] fixed typos with arenarating
original patch was ok - i just did copy/paste errors :s
2009-11-06 13:32:33 +01:00
danielich
63951591fd [8776] proper arena rating calculation
the elo-formula has K=48 for rating<1000
an K=32 for rating>1000

also set the rating of new members to 0 if they
join a team with rating <1000
2009-11-05 11:02:08 +01:00
Triply
132aed0f0b [8763] fixed typofix from last commit 2009-11-01 21:43:45 +01:00
danielich
70e3c17982 [8762] fixed typo with minimum default arena rating 2009-11-01 21:24:37 +01:00
VladimirMangos
59befa2e0e Merge branch 'master' into 320 2009-10-02 19:09:06 +04:00
Triply
8246a8c310 [8565] Fixed crash added in [8560]. Thx to KAPATEJIb.
Signed-off-by: Triply <triply@getmangos.com>
2009-09-29 19:13:57 +02:00
Triply
0356924cf9 [8560] Optimized guild and arena team loading at startup.
Signed-off-by: Triply <triply@getmangos.com>
2009-09-29 15:41:17 +02:00
tomrus88
2d86aa4535 Misc fixes. 2009-09-14 18:11:15 +04:00
tomrus88
f90f3dd987 Merge commit 'origin/master' into 320
Conflicts:
	src/game/ArenaTeam.cpp
2009-07-29 15:17:37 +04:00
Ebrithil
707c9f315d [8271] Fix: SQL typo in [8269]
Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-07-28 22:54:02 +02:00
balrok
0513e5cf06 [8269] added "m_" prefix to ArenaTeam classmember-variables
used this script + some manual edit
(i couldn't get out, how to handle comments)
function replace()
{
        sed -ri 's/([^a-zA-Z0-9_])'$1'([^a-zA-Z0-9_])/\1'$2'\2/g' ArenaTeam.*
}
replace Id m_TeamId
replace Type m_Type
replace Name m_Name
replace CaptainGuid m_CaptainGuid
replace BackgroundColor m_BackgroundColor
replace EmblemStyle m_EmblemStyle
replace EmblemColor m_EmblemColor
replace BorderStyle m_BorderStyle
replace BorderColor m_BorderColor
replace members m_members
replace stats m_stats

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-07-28 18:28:33 +02:00
XTZGZoReX
79d1c3fe6f [8268] ArenaTeam: new rating-system for season 6
every team will start with 0 rating here

to enable this you have to set your season in the config-file

thanks to danielich for initial patch

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-07-28 18:27:05 +02:00
balrok
3557b00a13 [8267] ArenaTeam: added check, that teamrating won't become negative
for this i added a FinishGame(mod) function
which also updates other stats, to avoid
redundant code

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-07-28 17:10:12 +02:00
tomrus88
4363516299 Replaced some hardcoded values with enum. 2009-07-11 12:09:42 +04:00
tomrus88
755c8a1a81 Updated to 10083 client build. 2009-07-11 07:46:50 +04:00
zhenya
8144f30199 [7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-04-29 01:05:21 +04:00
Triply
bd0619ce40 [7415] Fixed removing player from battlegrounds
Probably fixed bug with not ending battlegrounds - reported in previous commit message
Fixed player will loose arena rating if
1. he doesn't click on enter rated arena window - and timer will expire
2. he logs out during time he is invited to rated arena match
3. if he logs out during fight in rated arena match
Patch is not tested, i will test it as soon as possible.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-08 22:18:53 +01:00
VladimirMangos
9b3daf3933 [7330] Code warnings and style cleanups. Some bugs fixes.
1) comparison singed and unsigned values
2) redundent includes
3) wrong constructor :-part field initilization
4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
5) explicitly list not implemented achievement types.

Also bugs fixed:
1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.
2009-02-24 01:54:53 +03:00
zhenya
cdfee0fdfc [7282] Store guilds in map for fast search by id, some other guild/arenateam related cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-15 14:03:29 +03:00
VladimirMangos
5a4358dda9 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
* Use in functions and fields BattlegroundTypeId type instead uint32
* Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
  Many bg have same raw values for type id and queue id but some can be affected by this bug:
  BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
* Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
* Remobe redundent for header itself includes for BG headers.
* Use Auction location enum instead raw valus.
2009-02-08 11:05:11 +03:00
balrok
09162d082c Some more info about SMSG_ARENA_TEAM_ROSTER structure. 2009-01-26 23:59:17 +03:00
Woweur
d88bf2643b Fixed SMSG_ARENA_TEAM_ROSTER structure. 2009-01-26 23:57:35 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
ApoC
ef903e485c [6911] Fixed typo.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:32:38 +01:00
ApoC
a5331ab517 [6910] Implemented rewritten arenas. Original author w12x@getmangos.com
Many thanks also to:
  Balrok@github.com for long time updating.
  Triply@github.com for great work in rewriting process.
  All who I forget to name.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:17:24 +01:00
balrok
2e08a63da7 [6884] Replaced iterator++ with ++iterator in for-loop-headers
i used this script
for i in ls *.[ch]*; do cat $i | sed -r 's/(.*for.*iterator.*;\
    *)([a-z0-9\_\*]+)\ *\+\+(.*)/\1++\2\3/' > /tmp/mangos/$i; done
for i in ls *.[ch]*; do cp /tmp/mangos/$i $i; done

and rechecked it with my eyes, if everything is right
i took only for-loops cause they can be gathered easier with a script

Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-07 19:49:45 +01:00
hunuza
1ad9adc467 [6865] Improve db access in guild and arena team code.
Note: Using SetUInt32ValueInDB() is still not safe, because it's executed async.
Three possible solutions:
1) remove data field
2) get rid of SetUInt32ValueInDB() calls (probably not possible)
3) make SaveValuesArrayInDB() executed directly
2008-11-30 13:19:49 +01:00
hunuza
d0ea9cbb23 [6864] Fixed typos in [6863]. 2008-11-30 12:37:06 +01:00
hunuza
e19433fa73 [6863] Arena team related clean ups and adding parts of w12x's arena patch. 2008-11-30 11:41:16 +01:00
killdozer
8032d6d5a4 [6837] Fixed typo in ArenaTeam::AddMember that sometimes prevented joining teams.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-11-18 18:04:14 +01:00
hunuza
90828fa699 Cache highest arena team/guild ids. Some code clean up. 2008-11-05 16:58:57 +01:00
hunuza
2cdd7dcfce Improve some arena team related DB access.
Reduce number of queries for adding a new arena team member.
Merge two queries in Player::GetArenaTeamIdFromDB() into one.
2008-11-03 10:58:29 +01:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00