0
0
mirror of https://github.com/marcrobledo/savegame-editors.git synced 2025-04-24 16:35:10 +00:00

Merge pull request #462 from marcrobledo/CM30-Travel-Medallion

Cm30 travel medallion
This commit is contained in:
Marc Robledo 2024-09-29 18:19:00 +02:00 committed by GitHub
commit 6de5e0bc36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 53 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -893,7 +893,14 @@
<!-- TAB: KEY -->
<div id="tab-key">
<h3 data-translate="Key items">Key items</h3><div id="container-key"></div>
<h3 data-translate="Key items">Key items</h3><div id="key-abilities" class="text-center mb-20">
<label><input type="checkbox" id="key-abilities-UltraHand" /> <img src="assets/item_icons/key/Obj_UltraHand.png" class="item-icon" loading="lazy"/></label>
<label><input type="checkbox" id="key-abilities-OneTouchBond" /> <img src="assets/item_icons/key/Obj_OneTouchBond.png" class="item-icon" loading="lazy"/></label>
<label><input type="checkbox" id="key-abilities-Tooreroof" /> <img src="assets/item_icons/key/Obj_Tooreroof.png" class="item-icon" loading="lazy"/></label>
<label><input type="checkbox" id="key-abilities-ReverseRecorder" /> <img src="assets/item_icons/key/Obj_ReverseRecorder.png" class="item-icon" loading="lazy"/></label>
<label><input type="checkbox" id="key-abilities-AutoBuilder" /> <img src="assets/item_icons/key/Obj_AutoBuilder.png" class="item-icon" loading="lazy"/></label>
<label><input type="checkbox" id="key-abilities-AmiiboItem" /> <img src="assets/item_icons/key/Obj_AmiiboItem.png" class="item-icon" loading="lazy"/></label>
</div><div id="container-key"></div>
<div class="text-center">
<button class="btn" onclick="SavegameEditor.addItem('key')"><img src="assets/octicons/octicon_plus_circle.svg" loading="lazy" class="octicon" /> <span data-translate="Add key item">Add key item</span></button>
</div>

View File

@ -1,5 +1,5 @@
/*
The legend of Zelda: Tears of the Kingdom savegame editor - Item class (last update 2024-01-10)
The legend of Zelda: Tears of the Kingdom savegame editor - Item class (last update 2024-09-29)
by Marc Robledo 2023-2024
item names compiled by Echocolat, Exincracci, HylianLZ and Karlos007
@ -165,6 +165,14 @@ Item.KEY_COUNTABLE=[
'Obj_AutoBuilderDraftAssassin_00',
'Item_StableHostelAccommodationCoupon_A'
];
Item.ABILITIES=[
'UltraHand',
'OneTouchBond', /* fusion */
'Tooreroof', /* ascent */
'ReverseRecorder', /* recall */
'AutoBuilder',
'AmiiboItem'
];
@ -921,7 +929,6 @@ Item.AVAILABILITY={
'Obj_Photo_Weapon', //Weapon Photo
'Obj_SheikSensor', //Sheikah Sensor
'Obj_SheikSensorLv2', //Sheikah Sensor (Level 2)
'Obj_Warp', //Purah Pad Warp Functionality
]
};

View File

@ -489,7 +489,24 @@ SavegameEditor={
variable=new Variable('OwnedCustomizableHorseTack_Reins.'+item.id, 'Bool');
}else if(/^GameRomHorseSaddle_/.test(item.id)){
variable=new Variable('OwnedCustomizableHorseTack_Saddle.'+item.id, 'Bool');
}else if(item.id==='Obj_Camera'){
variable=new Variable('IsGet.Obj_Camera', 'Bool');
var variable2=new Variable('IsGetAnyway.Obj_Camera', 'Bool');
variable2.value=true;
variable2.save();
}else if(item.id==='Obj_WarpDLC'){
variable=new Variable('IsGet.Obj_WarpDLC', 'Bool');
var variable2=new Variable('IsGetAnyway.Obj_WarpDLC', 'Bool');
variable2.value=true;
variable2.save();
variable2=new Variable('IsGet.Obj_Warp', 'Bool');
variable2.value=true;
variable2.save();
variable2=new Variable('IsGetAnyway.Obj_Warp', 'Bool');
variable2.value=true;
variable2.save();
}
if(variable && !variable.value){
variable.value=true;
variable.save();
@ -1557,6 +1574,18 @@ SavegameEditor={
);
});
/* abilities */
Item.ABILITIES.forEach(function(abilityId){
document.getElementById('key-abilities-'+abilityId).addEventListener('change', function(){
var variable1=new Variable('IsGet.Obj_'+abilityId, 'Bool');
var variable2=new Variable('IsGetAnyway.Obj_'+abilityId, 'Bool');
variable1.value=this.checked;
variable2.value=this.checked;
variable1.save();
variable2.save();
});
});
/* master editor mini */
$('#button-hash-editor-export').on('click', TOTKMasterEditor.miniExport);
$('#button-hash-editor-import').on('click', function(evt){
@ -1652,6 +1681,13 @@ SavegameEditor={
Pouch.updateItemIcon(item);
});
/* abilities */
Item.ABILITIES.forEach(function(abilityId){
var variable1=new Variable('IsGet.Obj_'+abilityId, 'Bool');
var variable2=new Variable('IsGetAnyway.Obj_'+abilityId, 'Bool');
document.getElementById('key-abilities-'+abilityId).checked=variable1.value && variable2.value;
});
/* read pouches */
this.pouches={
weapons:new Pouch('weapons'),