Skip to content

Commit

Permalink
fixed SSBU editor
Browse files Browse the repository at this point in the history
  • Loading branch information
marcrobledo committed Mar 2, 2023
1 parent a1efafa commit 6fd9d4a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion smash-bros-ultimate/_cache_service_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ caches.keys().then(function(cacheNames){
});

var PRECACHE_ID='smash-bros-ultimate-editor';
var PRECACHE_VERSION='v1b';
var PRECACHE_VERSION='v1c';
var PRECACHE_URLS=[
'/savegame-editors/smash-bros-ultimate/','/savegame-editors/smash-bros-ultimate/index.html',
'/savegame-editors/smash-bros-ultimate/favicon.png',
Expand Down
23 changes: 21 additions & 2 deletions smash-bros-ultimate/smash-bros-ultimate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Super Smash Bros. Ultimate for HTML5 Save Editor v2019
by Marc Robledo 2019
Super Smash Bros. Ultimate for HTML5 Save Editor v2019-2023
by Marc Robledo 2019-2023
Expand Down Expand Up @@ -90,6 +90,25 @@ SavegameEditor={

/* save function */
save:function(){
tempFile.writeU8(this.Offsets.ITEMS_SHUFFLE_ALL, getValue('items-shuffle-all'));
tempFile.writeU8(this.Offsets.ITEMS_ALL_PRIMARIES, getValue('items-all-primaries'));
tempFile.writeU8(this.Offsets.ITEMS_ALL_SUPPORTS, getValue('items-all-supports'));
tempFile.writeU8(this.Offsets.ITEMS_FILLER, getValue('items-filler'));
tempFile.writeU8(this.Offsets.ITEMS_REMATCH, getValue('items-rematch'));
tempFile.writeU8(this.Offsets.ITEMS_50_DAMAGE, getValue('items-50-damage'));
tempFile.writeU8(this.Offsets.ITEMS_SLOW_FS_CHARGING, getValue('items-slow-fs-charging'));
tempFile.writeU8(this.Offsets.ITEMS_WEAKEN_MINIONS, getValue('items-weaken-minions'));
tempFile.writeU8(this.Offsets.ITEMS_HEALTH_DRAIN, getValue('items-health-drain'));
tempFile.writeU8(this.Offsets.ITEMS_DISABLE_ITEMS, getValue('items-disable-items'));
tempFile.writeU8(this.Offsets.ITEMS_SHIELD_SPACER, getValue('items-shield-spacer'));
tempFile.writeU8(this.Offsets.ITEMS_SLUGGISH_SHIELD, getValue('items-sluggish-shield'));

tempFile.writeU16(this.Offsets.SNACK_S, getValue('snacks-s'));
tempFile.writeU16(this.Offsets.SNACK_M, getValue('snacks-m'));
tempFile.writeU16(this.Offsets.SNACK_L, getValue('snacks-l'));
tempFile.writeU32(this.Offsets.SPIRIT_POINTS, getValue('sp'));
tempFile.writeU8(this.Offsets.TICKETS, getValue('tickets'));
tempFile.writeU32(this.Offsets.GOLD, getValue('gold'));
tempFile.writeU8(this.Offsets.HAMMERS, getValue('hammers'));
}
}

0 comments on commit 6fd9d4a

Please sign in to comment.