mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11:54 +08:00
Expansion (#707)
This additional content explores the aftermath of an event in The Ensign. A large dungeon, The Executioner, reveals the fate of one of the Wanderers’ most powerful weapons though multiple wings, each ending with a unique boss encounter. The fabricator allows the player to craft powerful items out of alien alloy, introducing new combat mechanics.
This commit is contained in:
+5
-1
@@ -20,7 +20,8 @@ var Button = {
|
||||
})
|
||||
.data("handler", typeof options.click == 'function' ? options.click : function() { Engine.log("click"); })
|
||||
.data("remaining", 0)
|
||||
.data("cooldown", typeof options.cooldown == 'number' ? options.cooldown : 0);
|
||||
.data("cooldown", typeof options.cooldown == 'number' ? options.cooldown : 0)
|
||||
.data('boosted', options.boosted ?? (() => false));
|
||||
|
||||
el.append($("<div>").addClass('cooldown'));
|
||||
|
||||
@@ -68,6 +69,9 @@ var Button = {
|
||||
|
||||
cooldown: function(btn, option) {
|
||||
var cd = btn.data("cooldown");
|
||||
if (btn.data('boosted')()) {
|
||||
cd /= 2;
|
||||
}
|
||||
var id = 'cooldown.'+ btn.attr('id');
|
||||
if(cd > 0) {
|
||||
if(typeof option == 'number') {
|
||||
|
||||
Reference in New Issue
Block a user