mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-28 14:13:01 -04:00
Various Updates
Refactors factional presence tracking from src to dsrc for more flexibility and hooking to GCW leaderboard for scaled scoring later Addresses a number of faction base and faction presence GU items Rescripted gmRevive to have more functionality Restore Planet Map Cats to final day
This commit is contained in:
@@ -170,4 +170,50 @@ public class space_skill extends script.base_script
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static boolean hasTier3Skills(obj_id player) throws InterruptedException {
|
||||
if (hasRebelSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_rebel_navy_droid_03"));
|
||||
}
|
||||
if (hasImperialSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_imperial_navy_droid_03"));
|
||||
}
|
||||
if (hasPilotSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_neutral_droid_03"));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static boolean hasTier2Skills(obj_id player) throws InterruptedException {
|
||||
if (hasRebelSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_rebel_navy_droid_02"));
|
||||
}
|
||||
if (hasImperialSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_imperial_navy_droid_02"));
|
||||
}
|
||||
if (hasPilotSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_neutral_droid_02"));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static boolean hasTier1Skills(obj_id player) throws InterruptedException {
|
||||
if (hasRebelSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_rebel_navy_droid_01"));
|
||||
}
|
||||
if (hasImperialSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_imperial_navy_droid_01"));
|
||||
}
|
||||
if (hasPilotSkill(player))
|
||||
{
|
||||
return (hasSkill(player, "pilot_neutral_droid_01"));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user