Ticket #2021: alarm_technology.patch
File alarm_technology.patch, 2.4 KB (added by , 11 years ago) |
---|
-
binaries/data/mods/public/gui/session/messages.js
66 66 if (isDiplomacyOpen) 67 67 openDiplomacy(); 68 68 } 69 else if (notification.type == "technologyResearched") 70 { 71 if (notification.player == Engine.GetPlayerID()) 72 Engine.PlayUISound(notification.sound, false); 73 } 69 74 else if (notification.type == "diplomacy") 70 75 { 71 76 addChatMessage({ -
binaries/data/mods/public/simulation/components/ProductionQueue.js
637 637 var cmpTechnologyManager = QueryOwnerInterface(this.entity, IID_TechnologyManager); 638 638 cmpTechnologyManager.ResearchTechnology(item.technologyTemplate); 639 639 640 var sound = "audio/interface/alarm/alarmupgradearmory_1.ogg"; 641 var template = cmpTechnologyManager.GetTechnologyTemplate(item.technologyTemplate); 642 643 if (template && template.soundComplete) 644 sound = template.soundComplete; 645 646 var notification = {"type": "technologyResearched", "player": cmpPlayer.GetPlayerID(), "sound": sound}; 647 var cmpGUIInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface); 648 cmpGUIInterface.PushNotification(notification); 649 640 650 time -= item.timeRemaining; 641 651 642 652 this.queue.shift(); -
binaries/data/mods/public/simulation/data/technologies/phase_town_athen.json
3 3 "specificName": { 4 4 "athen": "Komópolis" 5 5 }, 6 "soundComplete": "audio/interface/alarm/alarmattackunit_1.ogg", 6 7 "description": "Advances from a bustling town to a veritable metropolis, full of the wonders of modern technology. This is the Athenian city phase, where metal gathering rates are boosted because of the Silver Owls bonus.", 7 8 "cost": {"food": 1000, "wood": 1000, "stone": 0, "metal": 0}, 8 9 "requirements": { "class": "Village", "number": 6 },