keep non-XP stuff untouched
This commit is contained in:
		
							parent
							
								
									1d283722fb
								
							
						
					
					
						commit
						667f8ccf31
					
				@ -734,8 +734,8 @@ function doAcquireMiscItems() {
 | 
				
			|||||||
    const [category, uniqueName] = data.split(":");
 | 
					    const [category, uniqueName] = data.split(":");
 | 
				
			||||||
    revalidateAuthz(() => {
 | 
					    revalidateAuthz(() => {
 | 
				
			||||||
        $.post({
 | 
					        $.post({
 | 
				
			||||||
            url: "/custom/addXp?" + window.authz,
 | 
					            url: "/api/missionInventoryUpdate.php?" + window.authz,
 | 
				
			||||||
            contentType: "application/json",
 | 
					            contentType: "text/plain",
 | 
				
			||||||
            data: JSON.stringify({
 | 
					            data: JSON.stringify({
 | 
				
			||||||
                [category]: [
 | 
					                [category]: [
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
@ -771,8 +771,8 @@ function doAcquireRiven() {
 | 
				
			|||||||
    revalidateAuthz(() => {
 | 
					    revalidateAuthz(() => {
 | 
				
			||||||
        // Add riven type to inventory
 | 
					        // Add riven type to inventory
 | 
				
			||||||
        $.post({
 | 
					        $.post({
 | 
				
			||||||
            url: "/custom/addXp?" + window.authz,
 | 
					            url: "/api/missionInventoryUpdate.php?" + window.authz,
 | 
				
			||||||
            contentType: "application/json",
 | 
					            contentType: "text/plain",
 | 
				
			||||||
            data: JSON.stringify({
 | 
					            data: JSON.stringify({
 | 
				
			||||||
                RawUpgrades: [
 | 
					                RawUpgrades: [
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
@ -845,8 +845,8 @@ function doAcquireMod() {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    revalidateAuthz(() => {
 | 
					    revalidateAuthz(() => {
 | 
				
			||||||
        $.post({
 | 
					        $.post({
 | 
				
			||||||
            url: "/custom/addXp?" + window.authz,
 | 
					            url: "/api/missionInventoryUpdate.php?" + window.authz,
 | 
				
			||||||
            contentType: "application/json",
 | 
					            contentType: "text/plain",
 | 
				
			||||||
            data: JSON.stringify({
 | 
					            data: JSON.stringify({
 | 
				
			||||||
                RawUpgrades: [
 | 
					                RawUpgrades: [
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
@ -1033,8 +1033,8 @@ function doAddAllMods() {
 | 
				
			|||||||
                window.confirm("Are you sure you want to add " + modsAll.length + " mods to your account?")
 | 
					                window.confirm("Are you sure you want to add " + modsAll.length + " mods to your account?")
 | 
				
			||||||
            ) {
 | 
					            ) {
 | 
				
			||||||
                $.post({
 | 
					                $.post({
 | 
				
			||||||
                    url: "/custom/addXp?" + window.authz,
 | 
					                    url: "/api/missionInventoryUpdate.php?" + window.authz,
 | 
				
			||||||
                    contentType: "application/json",
 | 
					                    contentType: "text/plain",
 | 
				
			||||||
                    data: JSON.stringify({
 | 
					                    data: JSON.stringify({
 | 
				
			||||||
                        RawUpgrades: modsAll.map(mod => ({
 | 
					                        RawUpgrades: modsAll.map(mod => ({
 | 
				
			||||||
                            ItemType: mod,
 | 
					                            ItemType: mod,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user