Updated /Data folder

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2364 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
Flugente
2017-06-08 19:23:33 +00:00
parent 931d5570ff
commit d8b62fa5d3
30 changed files with 15874 additions and 5002 deletions
@@ -48,8 +48,8 @@
**************
** Examples **
**************
if ( SectorEnemyControlled ( CALCULATE_STRATEGIC_INDEX (13,4) ) == false ) then
if ( SectorEnemyControlled ( CALCULATE_STRATEGIC_INDEX(13,4) ) ) == false then
-- instructions
else
-- instructions
+28 -12
View File
@@ -116,22 +116,22 @@ CreatureMusic = {
local sectorList = {
-- Miguel's basement
{ location = "A10-1", loadscreen = "LS_Basement", },
{ location = "A10-1", loadscreens = { "LS_Basement", "LS_Upstairs" }, },
-- Tixa
{ location = "J9-1", loadscreen = "LS_Basement", },
{ location = "J9-1", loadscreens = { "LS_Basement", "LS_Upstairs" }, },
-- feeding zone
{ location = "J9-2", loadscreen = "LS_Cave", },
-- Orta
{ location = "K4-1", loadscreen = "LS_Basement", },
{ location = "K4-1", loadscreens = { "LS_Basement", "LS_Upstairs" }, },
-- Meduna
{ location = "O3-1", loadscreen = "LS_Basement", },
{ location = "P3-1", loadscreen = "LS_Basement", },
{ location = "O3-1", loadscreens = { "LS_Basement", "LS_Upstairs" }, },
{ location = "P3-1", loadscreens = { "LS_Basement", "LS_Upstairs" }, },
-- San Mona mine
@@ -352,18 +352,34 @@ Return values
function GetLoadscreen(location, timeOfDay)
local function Return(name)
return "Loadscreens\\" .. name, "sti"
end
local s = sectorList[location]
if s ~= nil and s.loadscreen ~= nil then
return "Loadscreens\\" .. s.loadscreen, "sti"
else
-- resorting to defaults
if s ~= nil then
-- multiple screens to choose from?
if s.loadscreens ~= nil and #s.loadscreens > 0 then
local screen = s.loadscreens[math.random(#s.loadscreens)]
return Return(screen)
end
-- single screen?
if s.loadscreen ~= nil then
return Return(s.loadscreen)
end
end
-- resorting to defaults
do
-- get last character, aka z level
level = location:sub(#location, #location)
local level = location:sub(#location, #location)
if level == "1" then
return "Loadscreens\\LS_Mine", "sti"
return Return("LS_Mine")
else
return "Loadscreens\\LS_Cave", "sti"
return Return("LS_Cave")
end
end
end
+87 -7
View File
@@ -79,8 +79,6 @@ Facts = {
FACT_ALL_TERRORISTS_KILLED = 156,
}
local NOBODY = 254
History = {
HISTORY_ENTERED_HISTORY_MODE = 0,
HISTORY_HIRED_MERC_FROM_AIM = 1,
@@ -169,9 +167,93 @@ Profil =
ELLIOT = 135,
CONRAD = 70,
CARMEN = 78,
KINGPIN = 86,
MADLAB = 146,
ROBOT = 62,
MIGUEL = 57,
KYLE = 95,
}
SoldierClass =
{
SOLDIER_CLASS_NONE = 0,
SOLDIER_CLASS_ADMINISTRATOR = 1,
SOLDIER_CLASS_ELITE = 2,
SOLDIER_CLASS_ARMY = 3,
}
CivGroup =
{
REBEL_CIV_GROUP = 1,
KINGPIN_CIV_GROUP = 2,
WARDEN_CIV_GROUP = 11,
BOUNTYHUNTER_CIV_GROUP = 25,
SCIENTIST_GROUP = 27,
RADAR_TECHNICIAN_GROUP = 28,
AIRPORT_STAFF_GROUP = 29,
BARRACK_STAFF_GROUP = 30,
FACTORY_GROUP = 31,
ADMINISTRATIVE_STAFF_GROUP = 32,
LOYAL_CIV_GROUP = 33,
}
Bodytype =
{
REGMALE = 0,
BIGMALE = 1,
STOCKYMALE = 2,
REGFEMALE = 3,
FATCIV = 11,
MANCIV = 12,
MINICIV = 13,
DRESSCIV = 14,
HATKIDCIV = 15,
KIDCIV = 16,
CRIPPLECIV = 17,
}
Skin =
{
PINKSKIN = 0,
TANSKIN = 1,
DARKSKIN = 2,
BLACKSKIN = 3,
}
Hair =
{
WHITEHEAD = 0,
BLACKHEAD = 1,
BROWNHEAD = 2,
BLONDEHEAD = 3,
REDHEAD = 4,
}
Vest =
{
WHITEVEST = 0,
GYELLOWSHIRT = 1,
YELLOWVEST = 2,
GREYVEST = 3,
BROWNVEST = 4,
PURPLESHIRT = 5,
BLUEVEST = 6,
JEANVEST = 7,
GREENVEST = 8,
REDVEST = 9,
BLACKSHIRT = 10,
}
Pants =
{
BLUEPANTS = 0,
BLACKPANTS = 1,
JEANPANTS = 2,
TANPANTS = 3,
BEIGEPANTS = 4,
GREENPANTS = 5,
}
local gsRobotGridNo
function HandleQuestCodeOnSectorEntry( sNewSectorX, sNewSectorY, bNewSectorZ )
@@ -183,11 +265,9 @@ function HandleQuestCodeOnSectorEntry( sNewSectorX, sNewSectorY, bNewSectorZ )
SetCharacterSectorX(Profil.ANGEL, 0)
SetCharacterSectorY(Profil.ANGEL, 0)
end
if ( sNewSectorX == 5 and sNewSectorY == SectorY.MAP_ROW_D ) then
gubBoxerID( 0, NOBODY )
gubBoxerID( 1, NOBODY )
gubBoxerID( 2, NOBODY )
ResetBoxers()
end
if ( sNewSectorX == 3 and sNewSectorY == SectorY.MAP_ROW_P ) then
@@ -235,4 +315,4 @@ function HandleQuestCodeOnSectorExit( sOldSectorX, sOldSectorY, bOldSectorZ )
-- reset the state of the museum alarm for Eldin's quotes
SetFactFalse( Facts.FACT_MUSEUM_ALARM_WENT_OFF )
end
end