Merge remote-tracking branch 'upstream/master' into master
This commit is contained in:
@@ -384,7 +384,7 @@ public class PlayerManager
|
||||
}
|
||||
else if (itemComposition.isTradeable())
|
||||
{
|
||||
prices.put(id, itemManager.getItemPrice(id, false));
|
||||
prices.put(id, itemManager.getItemPrice(id));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -131,13 +131,16 @@ public class ChatMessageManager
|
||||
case MODCHAT:
|
||||
{
|
||||
String sanitizedUsername = Text.removeTags(chatMessage.getName());
|
||||
boolean isFriend = client.isFriended(sanitizedUsername, true) && !client.getLocalPlayer().getName().equals(sanitizedUsername);
|
||||
|
||||
if (isFriend)
|
||||
if (client.getLocalPlayer().getName().equals(sanitizedUsername))
|
||||
{
|
||||
usernameColor = isChatboxTransparent ? chatColorConfig.transparentPlayerUsername() : chatColorConfig.opaquePlayerUsername();
|
||||
}
|
||||
else if (client.isFriended(sanitizedUsername, true))
|
||||
{
|
||||
usernameColor = isChatboxTransparent ? chatColorConfig.transparentPublicFriendUsernames() : chatColorConfig.opaquePublicFriendUsernames();
|
||||
}
|
||||
if (usernameColor == null)
|
||||
else
|
||||
{
|
||||
usernameColor = isChatboxTransparent ? chatColorConfig.transparentUsername() : chatColorConfig.opaqueUsername();
|
||||
}
|
||||
|
||||
@@ -313,6 +313,15 @@ public interface ChatColorConfig extends Config
|
||||
)
|
||||
Color opaquePublicFriendUsernames();
|
||||
|
||||
@ConfigItem(
|
||||
position = 28,
|
||||
keyName = "opaquePlayerUsername",
|
||||
name = "Your username",
|
||||
description = "Color of your username",
|
||||
section = opaqueSection
|
||||
)
|
||||
Color opaquePlayerUsername();
|
||||
|
||||
@ConfigItem(
|
||||
position = 51,
|
||||
keyName = "transparentPublicChat",
|
||||
@@ -579,4 +588,13 @@ public interface ChatColorConfig extends Config
|
||||
section = transparentSection
|
||||
)
|
||||
Color transparentPublicFriendUsernames();
|
||||
|
||||
@ConfigItem(
|
||||
position = 78,
|
||||
keyName = "transparentPlayerUsername",
|
||||
name = "Your username (transparent)",
|
||||
description = "Color of your username (transparent)",
|
||||
section = transparentSection
|
||||
)
|
||||
Color transparentPlayerUsername();
|
||||
}
|
||||
|
||||
@@ -299,19 +299,6 @@ public class ItemManager
|
||||
return getItemPriceWithSource(itemID, runeLiteConfig.useWikiItemPrices());
|
||||
}
|
||||
|
||||
/**
|
||||
* Look up an item's price
|
||||
*
|
||||
* @param itemID item id
|
||||
* @param ignoreUntradeableMap skip untradeables
|
||||
* @return item price
|
||||
*/
|
||||
@Deprecated(since = "4.1.0", forRemoval = true)
|
||||
public int getItemPrice(int itemID, boolean ignoreUntradeableMap)
|
||||
{
|
||||
return getItemPriceWithSource(itemID, runeLiteConfig.useWikiItemPrices(), ignoreUntradeableMap);
|
||||
}
|
||||
|
||||
/**
|
||||
* Look up an item's price
|
||||
*
|
||||
@@ -320,12 +307,6 @@ public class ItemManager
|
||||
* @return item price
|
||||
*/
|
||||
public int getItemPriceWithSource(int itemID, boolean useWikiPrice)
|
||||
{
|
||||
return getItemPriceWithSource(itemID, useWikiPrice, false);
|
||||
}
|
||||
|
||||
// TODO: inline this back to getItemPriceWithSource(int, boolean) next minor ver
|
||||
private int getItemPriceWithSource(int itemID, boolean useWikiPrice, boolean ignoreUntradeableMap)
|
||||
{
|
||||
if (itemID == COINS_995)
|
||||
{
|
||||
@@ -360,11 +341,6 @@ public class ItemManager
|
||||
{
|
||||
for (final ItemMapping mappedItem : mappedItems)
|
||||
{
|
||||
if (ignoreUntradeableMap && mappedItem.isUntradeable())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
price += getItemPriceWithSource(mappedItem.getTradeableItem(), useWikiPrice) * mappedItem.getQuantity();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -347,7 +347,7 @@ public class DevToolsPlugin extends Plugin
|
||||
int id = Integer.parseInt(args[0]);
|
||||
Player localPlayer = client.getLocalPlayer();
|
||||
localPlayer.setAnimation(id);
|
||||
localPlayer.setActionFrame(0);
|
||||
localPlayer.setAnimationFrame(0);
|
||||
break;
|
||||
}
|
||||
case "gfx":
|
||||
|
||||
@@ -6834,6 +6834,34 @@
|
||||
10857,
|
||||
24792
|
||||
],
|
||||
"tea flask": [
|
||||
10859,
|
||||
25617
|
||||
],
|
||||
"plain satchel": [
|
||||
10877,
|
||||
25618
|
||||
],
|
||||
"green satchel": [
|
||||
10878,
|
||||
25619
|
||||
],
|
||||
"red satchel": [
|
||||
10879,
|
||||
25620
|
||||
],
|
||||
"black satchel": [
|
||||
10880,
|
||||
25621
|
||||
],
|
||||
"gold satchel": [
|
||||
10881,
|
||||
25622
|
||||
],
|
||||
"rune satchel": [
|
||||
10882,
|
||||
25623
|
||||
],
|
||||
"keg": [
|
||||
10885,
|
||||
10898
|
||||
@@ -7989,6 +8017,10 @@
|
||||
13269,
|
||||
13271
|
||||
],
|
||||
"unsired": [
|
||||
13273,
|
||||
25624
|
||||
],
|
||||
"max cape": [
|
||||
13280,
|
||||
13342
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include FACE_COUNT
|
||||
|
||||
#include cl_types.cl
|
||||
#include to_screen.cl
|
||||
#include common.cl
|
||||
#include priority_render.cl
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
9D8074ED6B6D8171CFC3A5C8F710FC94483DB601AF739E462AB20A6E5C97ACE7
|
||||
49F71301DDB45F2010BA8EFCA9D32D08C2CEF0A5F4F441A1CC1F1FE2CCFD7C36
|
||||
@@ -248,7 +248,7 @@ LABEL189:
|
||||
sconst ""
|
||||
set_varc_string 335
|
||||
LABEL193:
|
||||
jump LABEL262
|
||||
jump LABEL269
|
||||
LABEL194:
|
||||
iload 0
|
||||
iconst 104
|
||||
@@ -262,7 +262,7 @@ LABEL198:
|
||||
LABEL202:
|
||||
invoke 75
|
||||
LABEL203:
|
||||
jump LABEL262
|
||||
jump LABEL269
|
||||
LABEL204:
|
||||
iload 0
|
||||
iconst 105
|
||||
@@ -276,36 +276,45 @@ LABEL208:
|
||||
LABEL212:
|
||||
invoke 76
|
||||
LABEL213:
|
||||
jump LABEL262
|
||||
jump LABEL269
|
||||
LABEL214:
|
||||
iload 0
|
||||
iconst 80
|
||||
if_icmpeq LABEL218
|
||||
jump LABEL256
|
||||
jump LABEL263
|
||||
LABEL218:
|
||||
iconst 40697935
|
||||
iconst 1
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL224
|
||||
jump LABEL225
|
||||
LABEL224:
|
||||
return
|
||||
LABEL225:
|
||||
get_varc_string 356
|
||||
string_length
|
||||
iconst 0
|
||||
if_icmpgt LABEL223
|
||||
jump LABEL243
|
||||
LABEL223:
|
||||
if_icmpgt LABEL230
|
||||
jump LABEL250
|
||||
LABEL230:
|
||||
get_varc_string 356
|
||||
friend_test
|
||||
iconst 1
|
||||
if_icmpeq LABEL228
|
||||
jump LABEL231
|
||||
LABEL228:
|
||||
if_icmpeq LABEL235
|
||||
jump LABEL238
|
||||
LABEL235:
|
||||
get_varc_string 356
|
||||
invoke 107
|
||||
return
|
||||
LABEL231:
|
||||
LABEL238:
|
||||
get_varc_int 60
|
||||
clientclock
|
||||
if_icmpgt LABEL235
|
||||
jump LABEL236
|
||||
LABEL235:
|
||||
if_icmpgt LABEL242
|
||||
jump LABEL243
|
||||
LABEL242:
|
||||
return
|
||||
LABEL236:
|
||||
LABEL243:
|
||||
clientclock
|
||||
iconst 50
|
||||
add
|
||||
@@ -313,14 +322,14 @@ LABEL236:
|
||||
sconst "That player was not found on your Friends list."
|
||||
mes
|
||||
return
|
||||
LABEL243:
|
||||
LABEL250:
|
||||
get_varc_int 60
|
||||
clientclock
|
||||
if_icmpgt LABEL247
|
||||
jump LABEL248
|
||||
LABEL247:
|
||||
if_icmpgt LABEL254
|
||||
jump LABEL255
|
||||
LABEL254:
|
||||
return
|
||||
LABEL248:
|
||||
LABEL255:
|
||||
clientclock
|
||||
iconst 50
|
||||
add
|
||||
@@ -328,8 +337,8 @@ LABEL248:
|
||||
sconst "You haven't received any messages to which you can reply."
|
||||
mes
|
||||
return
|
||||
jump LABEL262
|
||||
LABEL256:
|
||||
jump LABEL269
|
||||
LABEL263:
|
||||
get_varc_string 335
|
||||
iconst 0
|
||||
iload 0
|
||||
@@ -341,9 +350,9 @@ LABEL256:
|
||||
runelite_callback ;
|
||||
if_icmpeq SKIPSETVARC ; skip setting varc with input
|
||||
set_varc_string 335
|
||||
jump LABEL262 ; jump over SKIPSETVARC
|
||||
jump LABEL269 ; jump over SKIPSETVARC
|
||||
SKIPSETVARC:
|
||||
pop_string ; pop message
|
||||
LABEL262:
|
||||
LABEL269:
|
||||
invoke 223
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user