3.1 Config Updates Continued

This commit is contained in:
AconiteGodOfSWG
2021-03-30 03:02:28 -04:00
parent 355796dd48
commit dc9e2432ac
94 changed files with 338 additions and 311 deletions
@@ -10,6 +10,8 @@ public class player_instance extends script.base_script
public player_instance()
{
}
private static final float HEROIC_TOKEN_MULTIPLIER = utils.getFloatConfigSetting("GameServer", "heroicTokenBonus", 1.0f);
public int OnHearSpeech(obj_id self, obj_id speaker, String text) throws InterruptedException
{
if (!isGod(self))
@@ -691,7 +693,7 @@ public class player_instance extends script.base_script
{
count = params.getInt("tokenCount");
}
count *= instance.HEROIC_TOKEN_MULTIPLIER;
count *= HEROIC_TOKEN_MULTIPLIER;
if (tokenIndex < 0 || tokenIndex >= trial.HEROIC_TOKENS.length)
{
sendSystemMessageTestingOnly(self, "DEBUG: handleAwardtoken sent with out of range tokenIndex.");