mirror of
https://github.com/1dot13/gamedir.git
synced 2026-07-22 13:40:25 +02:00
- Externalized Kingpin money sector and Hospital sector (by Buggler)
[San Mona] ;Kingpin's private stash. He will come looking for you if stolen KINGPIN_MONEY_SECTOR_X = 5 KINGPIN_MONEY_SECTOR_Y = 4 KINGPIN_MONEY_SECTOR_Z = 1 [Cambria] ;The Hospital sector HOSPITAL_SECTOR_X = 8 HOSPITAL_SECTOR_Y = 6 HOSPITAL_SECTOR_Z = 0 git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1780 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
@@ -339,13 +339,6 @@ NpcAction =
|
||||
NPC_ACTION_FREE_KIDS = 117,
|
||||
}
|
||||
|
||||
Sectors =
|
||||
{
|
||||
HOSPITAL_SECTOR_X = 8,
|
||||
HOSPITAL_SECTOR_Y = 6,
|
||||
HOSPITAL_SECTOR_Z = 0,
|
||||
}
|
||||
|
||||
EventTypes =
|
||||
{
|
||||
EVENT_SET_BY_NPC_SYSTEM = 27,
|
||||
@@ -630,7 +623,7 @@ function HandleEarlyMorningEvents()
|
||||
SetFactFalse( Facts.FACT_DAVE_HAS_GAS )
|
||||
end
|
||||
|
||||
if ( gWorldSectorX == Sectors.HOSPITAL_SECTOR_X and gWorldSectorY == Sectors.HOSPITAL_SECTOR_Y and gWorldSectorZ == Sectors.HOSPITAL_SECTOR_Z ) then
|
||||
if ( gWorldSectorX == iniHOSPITAL_SECTOR_X and gWorldSectorY == iniHOSPITAL_SECTOR_Y and gWorldSectorZ == iniHOSPITAL_SECTOR_Z ) then
|
||||
CheckForMissingHospitalSupplies()
|
||||
end
|
||||
|
||||
|
||||
@@ -79,14 +79,6 @@ Facts = {
|
||||
FACT_ALL_TERRORISTS_KILLED = 156,
|
||||
}
|
||||
|
||||
local KINGPIN_MONEY_SECTOR_X = 5
|
||||
local KINGPIN_MONEY_SECTOR_Y = 4 -- MAP_ROW_D
|
||||
local KINGPIN_MONEY_SECTOR_Z = 1
|
||||
|
||||
local HOSPITAL_SECTOR_X = 8
|
||||
local HOSPITAL_SECTOR_Y = 6 -- MAP_ROW_F
|
||||
local HOSPITAL_SECTOR_Z = 0
|
||||
|
||||
local NOBODY = 254
|
||||
|
||||
History = {
|
||||
@@ -226,7 +218,7 @@ end
|
||||
|
||||
function HandleQuestCodeOnSectorExit( sOldSectorX, sOldSectorY, bOldSectorZ )
|
||||
|
||||
if ( sOldSectorX == KINGPIN_MONEY_SECTOR_X and sOldSectorY == KINGPIN_MONEY_SECTOR_Y and bOldSectorZ == KINGPIN_MONEY_SECTOR_Z ) then
|
||||
if ( sOldSectorX == iniKINGPIN_MONEY_SECTOR_X and sOldSectorY == iniKINGPIN_MONEY_SECTOR_Y and bOldSectorZ == iniKINGPIN_MONEY_SECTOR_Z ) then
|
||||
CheckForKingpinsMoneyMissing( true )
|
||||
end
|
||||
|
||||
@@ -236,7 +228,7 @@ function HandleQuestCodeOnSectorExit( sOldSectorX, sOldSectorY, bOldSectorZ )
|
||||
SetCharacterSectorY(Profil.CONRAD, 0)
|
||||
end
|
||||
|
||||
if ( sOldSectorX == HOSPITAL_SECTOR_X and sOldSectorY == HOSPITAL_SECTOR_Y and bOldSectorZ == HOSPITAL_SECTOR_Z ) then
|
||||
if ( sOldSectorX == iniHOSPITAL_SECTOR_X and sOldSectorY == iniHOSPITAL_SECTOR_Y and bOldSectorZ == iniHOSPITAL_SECTOR_Z ) then
|
||||
CheckForMissingHospitalSupplies()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user