Ticket #2021: alarm_technology2.patch

File alarm_technology2.patch, 4.0 KB (added by Marcos Paulo Moreti, 11 years ago)
  • binaries/data/mods/public/audio/interface/alarm/alarm_techcomplete.xml

     
    11<?xml version="1.0" encoding="utf-8" standalone="no" ?>
    22<SoundGroup>
     3    <Omnipresent>1</Omnipresent>
     4    <HeardBy>owner</HeardBy>
    35    <Gain>1</Gain>
    46    <Pitch>1</Pitch>
    57    <Priority>100</Priority>
  • binaries/data/mods/public/audio/interface/alarm/alarm_techcomplete_phase.xml

     
     1<?xml version="1.0" encoding="utf-8" standalone="no" ?>
     2<SoundGroup>
     3    <Omnipresent>1</Omnipresent>
     4    <HeardBy>owner</HeardBy>
     5    <Gain>1</Gain>
     6    <Pitch>1</Pitch>
     7    <Priority>100</Priority>
     8    <ConeGain>1</ConeGain>
     9    <ConeInner>360</ConeInner>
     10    <ConeOuter>360</ConeOuter>
     11    <Looping>0</Looping>
     12    <RandOrder>1</RandOrder>
     13    <RandGain>1</RandGain>
     14    <GainUpper>1</GainUpper>
     15    <GainLower>0.8</GainLower>
     16    <RandPitch>1</RandPitch>
     17    <PitchUpper>1.1</PitchUpper>
     18    <PitchLower>0.9</PitchLower>
     19    <Threshold>1</Threshold>
     20    <Decay>3</Decay>
     21    <Replacement>alarmresearchtechphase_1.ogg</Replacement>
     22    <Path>audio/interface/alarm/</Path>
     23    <Sound>alarmresearchtechphase_1.ogg</Sound>
     24</SoundGroup>
  • binaries/data/mods/public/simulation/components/ProductionQueue.js

     
    637637            var cmpTechnologyManager = QueryOwnerInterface(this.entity, IID_TechnologyManager);
    638638            cmpTechnologyManager.ResearchTechnology(item.technologyTemplate);
    639639           
     640            var template = cmpTechnologyManager.GetTechnologyTemplate(item.technologyTemplate);
     641           
     642            if (template && template.soundComplete)
     643            {
     644                var cmpSoundManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_SoundManager);
     645               
     646                if (cmpSoundManager)
     647                    cmpSoundManager.PlaySoundGroup(template.soundComplete, this.entity);
     648            }
     649           
    640650            time -= item.timeRemaining;
    641651           
    642652            this.queue.shift();
  • binaries/data/mods/public/simulation/data/technologies/gather_lumbering_ironaxes.json

     
    99    "researchTime": 40,
    1010    "tooltip": "Workers +25% lumbering rate for trees.",
    1111    "modifications": [{"value": "ResourceGatherer/Rates/wood.tree", "multiplier": 1.25}],
    12     "affects": ["Worker"]
     12    "affects": ["Worker"],
     13    "soundComplete": "interface/alarm/alarm_techcomplete.xml"
    1314}
  • binaries/data/mods/public/simulation/data/technologies/phase_town_athen.json

     
    1212    "researchTime": 80,
    1313    "tooltip": "Advance to Town Phase, which unlocks more structures and units. Territory radius for Civilization Centers increased by +30%. 'Silver Owls' civ bonus grants an extra +10% metal gather rate to all workers.",
    1414    "modifications": [{"value": "ResourceGatherer/Rates/metal.ore", "multiplier": 1.1}],
    15     "affects": ["Worker"]
     15    "affects": ["Worker"],
     16    "soundComplete": "interface/alarm/alarm_techcomplete_phase.xml"
    1617}
     18 No newline at end of file