Browse Source

Fame for dead players now configurable and enabled by default.

_DS_ 15 years ago
parent
commit
e4923a3bec

+ 3 - 0
L2_GameServer/java/config/Character.properties

@@ -345,6 +345,9 @@ CastleZoneFameTaskFrequency = 300
 # Default: 125
 CastleZoneFameAquirePoints = 125
 
+# Dead players can receive fame.
+# Default: True
+FameForDeadPlayers = True
 
 # ---------------------------------------------------------------------------
 # Crafting

+ 2 - 0
L2_GameServer/java/net/sf/l2j/Config.java

@@ -129,6 +129,7 @@ public final class Config
 	public static int FORTRESS_ZONE_FAME_AQUIRE_POINTS;
 	public static int CASTLE_ZONE_FAME_TASK_FREQUENCY;
 	public static int CASTLE_ZONE_FAME_AQUIRE_POINTS;
+	public static boolean FAME_FOR_DEAD_PLAYERS;
 	public static boolean IS_CRAFTING_ENABLED;
 	public static boolean CRAFT_MASTERWORK;
 	public static int DWARF_RECIPE_LIMIT;
@@ -1226,6 +1227,7 @@ public final class Config
 					FORTRESS_ZONE_FAME_AQUIRE_POINTS = Integer.parseInt(Character.getProperty("FortressZoneFameAquirePoints","31"));
 					CASTLE_ZONE_FAME_TASK_FREQUENCY = Integer.parseInt(Character.getProperty("CastleZoneFameTaskFrequency","300"));
 					CASTLE_ZONE_FAME_AQUIRE_POINTS = Integer.parseInt(Character.getProperty("CastleZoneFameAquirePoints","125"));
+					FAME_FOR_DEAD_PLAYERS = Boolean.parseBoolean(Character.getProperty("FameForDeadPlayers", "true"));
 					IS_CRAFTING_ENABLED = Boolean.parseBoolean(Character.getProperty("CraftingEnabled", "true"));
 					CRAFT_MASTERWORK = Boolean.parseBoolean(Character.getProperty("CraftMasterwork", "True"));
 					DWARF_RECIPE_LIMIT = Integer.parseInt(Character.getProperty("DwarfRecipeLimit","50"));

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

@@ -12113,7 +12113,7 @@ public final class L2PcInstance extends L2Playable
 
         public void run()
         {
-        	if (_player == null || _player.isDead())
+        	if (_player == null || (_player.isDead() && !Config.FAME_FOR_DEAD_PLAYERS))
         		return;
             _player.setFame(_player.getFame() + _value);
             SystemMessage sm = new SystemMessage(SystemMessageId.ACQUIRED_S1_REPUTATION_SCORE);