mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Quest:
* moved reputation requirement to conditions Misc: * removed temp-hack from ShowOnMap.js * fixed some formating in global.js * allow display of extra html in all generic templates
This commit is contained in:
@@ -702,6 +702,7 @@ class Util
|
||||
// creates an announcement; use if minor issues arise
|
||||
public static function addNote($uGroupMask, $str)
|
||||
{
|
||||
// todo (med): log all those errors to DB
|
||||
self::$notes[] = [$uGroupMask, $str];
|
||||
}
|
||||
|
||||
@@ -893,6 +894,26 @@ class Util
|
||||
return 3;
|
||||
}
|
||||
|
||||
public static function getReputationLevelForPoints($pts)
|
||||
{
|
||||
if ($pts >= 41999)
|
||||
return REP_EXALTED;
|
||||
else if ($pts >= 20999)
|
||||
return REP_REVERED;
|
||||
else if ($pts >= 8999)
|
||||
return REP_HONORED;
|
||||
else if ($pts >= 2999)
|
||||
return REP_FRIENDLY;
|
||||
else if ($pts >= 0)
|
||||
return REP_NEUTRAL;
|
||||
else if ($pts >= -3000)
|
||||
return REP_UNFRIENDLY;
|
||||
else if ($pts >= -6000)
|
||||
return REP_HOSTILE;
|
||||
else
|
||||
return REP_HATED;
|
||||
}
|
||||
|
||||
// pageText for Books (Item or GO) and questText
|
||||
public static function parseHtmlText($text)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user