-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00ba05c
commit bb5b6c3
Showing
25 changed files
with
791 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Chiron 抽包模拟器</title><link href="./static/css/2.09eeb1b9.chunk.css" rel="stylesheet"><link href="./static/css/main.ea79c647.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(i){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],l=0,a=[];l<n.length;l++)t=n[l],Object.prototype.hasOwnProperty.call(c,t)&&c[t]&&a.push(c[t][0]),c[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r]);for(s&&s(e);a.length;)a.shift()();return p.push.apply(p,u||[]),f()}function f(){for(var e,r=0;r<p.length;r++){for(var t=p[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==c[u]&&(n=!1)}n&&(p.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},c={1:0},p=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=i,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)l.d(t,n,function(e){return r[e]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="./";var r=this["webpackJsonpchristmas-akylone"]=this["webpackJsonpchristmas-akylone"]||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;f()}([])</script><script src="./static/js/2.01061ec6.chunk.js"></script><script src="./static/js/main.0a30d354.chunk.js"></script></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Egoista 抽包模拟器</title><link href="./static/css/2.09eeb1b9.chunk.css" rel="stylesheet"><link href="./static/css/main.ea79c647.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(i){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],l=0,a=[];l<n.length;l++)t=n[l],Object.prototype.hasOwnProperty.call(c,t)&&c[t]&&a.push(c[t][0]),c[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r]);for(s&&s(e);a.length;)a.shift()();return p.push.apply(p,u||[]),f()}function f(){for(var e,r=0;r<p.length;r++){for(var t=p[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==c[u]&&(n=!1)}n&&(p.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},c={1:0},p=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=i,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)l.d(t,n,function(e){return r[e]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="./";var r=this["webpackJsonpchristmas-akylone"]=this["webpackJsonpchristmas-akylone"]||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;f()}([])</script><script src="./static/js/2.01061ec6.chunk.js"></script><script src="./static/js/main.c54bea14.chunk.js"></script></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"files": { | ||
"main.css": "./static/css/main.ea79c647.chunk.css", | ||
"main.js": "./static/js/main.0a30d354.chunk.js", | ||
"runtime-main.js": "./static/js/runtime-main.7a238cd1.js", | ||
"static/css/2.09eeb1b9.chunk.css": "./static/css/2.09eeb1b9.chunk.css", | ||
"static/js/2.01061ec6.chunk.js": "./static/js/2.01061ec6.chunk.js", | ||
"index.html": "./index.html", | ||
"precache-manifest.f47a4f8602bba80bcb0efae04a5db134.js": "./precache-manifest.f47a4f8602bba80bcb0efae04a5db134.js", | ||
"service-worker.js": "./service-worker.js", | ||
"static/js/2.01061ec6.chunk.js.LICENSE": "./static/js/2.01061ec6.chunk.js.LICENSE" | ||
}, | ||
"entrypoints": [ | ||
"static/js/runtime-main.7a238cd1.js", | ||
"static/css/2.09eeb1b9.chunk.css", | ||
"static/js/2.01061ec6.chunk.js", | ||
"static/css/main.ea79c647.chunk.css", | ||
"static/js/main.0a30d354.chunk.js" | ||
] | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Chiron 抽包模拟器</title><link href="./static/css/2.09eeb1b9.chunk.css" rel="stylesheet"><link href="./static/css/main.ea79c647.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(i){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],l=0,a=[];l<n.length;l++)t=n[l],Object.prototype.hasOwnProperty.call(c,t)&&c[t]&&a.push(c[t][0]),c[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r]);for(s&&s(e);a.length;)a.shift()();return p.push.apply(p,u||[]),f()}function f(){for(var e,r=0;r<p.length;r++){for(var t=p[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==c[u]&&(n=!1)}n&&(p.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},c={1:0},p=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=i,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)l.d(t,n,function(e){return r[e]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="./";var r=this["webpackJsonpchristmas-akylone"]=this["webpackJsonpchristmas-akylone"]||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;f()}([])</script><script src="./static/js/2.01061ec6.chunk.js"></script><script src="./static/js/main.0a30d354.chunk.js"></script></body></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
30 changes: 30 additions & 0 deletions
30
build_chiron/precache-manifest.f47a4f8602bba80bcb0efae04a5db134.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
self.__precacheManifest = (self.__precacheManifest || []).concat([ | ||
{ | ||
"revision": "6e0dade6a3ac23efb96320a641ccb7e3", | ||
"url": "./index.html" | ||
}, | ||
{ | ||
"revision": "a3336b3d98ad11321f8c", | ||
"url": "./static/css/2.09eeb1b9.chunk.css" | ||
}, | ||
{ | ||
"revision": "87f60135727482dac466", | ||
"url": "./static/css/main.ea79c647.chunk.css" | ||
}, | ||
{ | ||
"revision": "a3336b3d98ad11321f8c", | ||
"url": "./static/js/2.01061ec6.chunk.js" | ||
}, | ||
{ | ||
"revision": "f6d3de99c078f9149123800404e176e4", | ||
"url": "./static/js/2.01061ec6.chunk.js.LICENSE" | ||
}, | ||
{ | ||
"revision": "87f60135727482dac466", | ||
"url": "./static/js/main.0a30d354.chunk.js" | ||
}, | ||
{ | ||
"revision": "97cbd90637a8c356de2c", | ||
"url": "./static/js/runtime-main.7a238cd1.js" | ||
} | ||
]); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Welcome to your Workbox-powered service worker! | ||
* | ||
* You'll need to register this file in your web app and you should | ||
* disable HTTP caching for this file too. | ||
* See https://goo.gl/nhQhGp | ||
* | ||
* The rest of the code is auto-generated. Please don't update this file | ||
* directly; instead, make changes to your Workbox build configuration | ||
* and re-run your build process. | ||
* See https://goo.gl/2aRDsh | ||
*/ | ||
|
||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); | ||
|
||
importScripts( | ||
"./precache-manifest.f47a4f8602bba80bcb0efae04a5db134.js" | ||
); | ||
|
||
self.addEventListener('message', (event) => { | ||
if (event.data && event.data.type === 'SKIP_WAITING') { | ||
self.skipWaiting(); | ||
} | ||
}); | ||
|
||
workbox.core.clientsClaim(); | ||
|
||
/** | ||
* The workboxSW.precacheAndRoute() method efficiently caches and responds to | ||
* requests for URLs in the manifest. | ||
* See https://goo.gl/S9QRab | ||
*/ | ||
self.__precacheManifest = [].concat(self.__precacheManifest || []); | ||
workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); | ||
|
||
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"), { | ||
|
||
blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/], | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/*! | ||
Copyright (c) 2017 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/ | ||
|
||
/* | ||
object-assign | ||
(c) Sindre Sorhus | ||
@license MIT | ||
*/ | ||
|
||
/** @license React v16.12.0 | ||
* react.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @license React v16.12.0 | ||
* react-dom.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @license React v0.18.0 | ||
* scheduler.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** | ||
* @license | ||
* Lodash <https://lodash.com/> | ||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/> | ||
* Released under MIT license <https://lodash.com/license> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
*/ |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
import React from 'react' | ||
|
||
import { luckyWithShuffle } from '../../../../utils/lucky' | ||
|
||
|
||
import { Button,Flex} from 'antd-mobile' | ||
|
||
const Pack = ({pack_content, onAddCredit, onAddCount648, onAddCarCard, onShowRewordModal,countCopperPack,onAddCountCopperPack,onAddCopper,copper }) => { | ||
|
||
|
||
|
||
const onHandle=n=>()=>{ | ||
|
||
const cost=n*75 | ||
|
||
//充值648 | ||
while(copper-cost<0){ | ||
if(countCopperPack===0){ | ||
//首冲翻倍 | ||
onAddCopper(6176) | ||
countCopperPack=1 | ||
copper+=6176 | ||
|
||
|
||
} | ||
else{ | ||
onAddCopper(3088) | ||
copper+=3088 | ||
} | ||
onAddCount648(1) | ||
} | ||
|
||
onAddCopper(-cost) | ||
onAddCountCopperPack(n) | ||
|
||
const dropRates = pack_content.map(item => item.drop_rate) | ||
// console.log(dropRates.reduce((sum,rate)=>sum+rate)) | ||
let infos = [] | ||
for (let i = 0; i < n; i++) { | ||
//const item_index=lucky(dropRates) | ||
const item_index = luckyWithShuffle(dropRates) | ||
// console.log(`获得物品${item_index}`) | ||
const item = pack_content[item_index] | ||
const { title, num, type } = item | ||
infos.push(`${title} ${num}`) | ||
if (type === 'car_card') { | ||
onAddCarCard(item.car_code, item.num) | ||
} | ||
else if(type==='credit'){ | ||
onAddCredit(item.num) | ||
} | ||
} | ||
|
||
onShowRewordModal(infos) | ||
} | ||
|
||
const onHandleMust=n=>()=>{ | ||
|
||
const cost=n*75 | ||
|
||
//充值648 | ||
while(copper-cost<0){ | ||
if(countCopperPack===0){ | ||
//首冲翻倍 | ||
onAddCopper(6176) | ||
countCopperPack=1 | ||
copper+=6176 | ||
|
||
|
||
} | ||
else{ | ||
onAddCopper(3088) | ||
copper+=3088 | ||
} | ||
onAddCount648(1) | ||
} | ||
|
||
onAddCopper(-cost) | ||
onAddCountCopperPack(n) | ||
|
||
const dropRates = pack_content.map(item => item.drop_rate) | ||
let infos = [] | ||
let items=[] | ||
|
||
let haveBD=false | ||
while(!haveBD){ | ||
items=[] | ||
for(let i=0;i<n;i++){ | ||
const item_index = luckyWithShuffle(dropRates) | ||
const item = pack_content[item_index] | ||
if(item_index<3){ | ||
haveBD=true | ||
} | ||
items.push(item) | ||
} | ||
} | ||
items.map(item=>{ | ||
const { title, num, type } = item | ||
if (type === 'car_card') { | ||
infos.push(`${title} ${num}`) | ||
onAddCarCard(item.car_code, item.num) | ||
} | ||
else if(type==='credit'){ | ||
infos.push(`金币 ${num}`) | ||
onAddCredit(num) | ||
} | ||
|
||
}) | ||
|
||
onShowRewordModal(infos) | ||
} | ||
|
||
return <div> | ||
<div className='pack-description'>有机会获得 15 张 Lamborghini Egoista 图纸。</div> | ||
<div className='pack-description'>购买十连礼包,必定获得 Lamborghini Egoista 图纸。</div> | ||
|
||
|
||
<Flex> | ||
<Flex.Item> | ||
<Button className='buy' | ||
activeStyle={{ backgroundColor: '#040f25', color: '#c3fb12' }} | ||
onClick={onHandle(1)}>购买1 点券75</Button> | ||
</Flex.Item> | ||
<Flex.Item> | ||
<Button className='buy' | ||
activeStyle={{ backgroundColor: '#040f25', color: '#c3fb12' }} | ||
onClick={onHandleMust(10)}>购买10 点券750</Button> | ||
</Flex.Item> | ||
</Flex> | ||
|
||
</div> | ||
} | ||
|
||
export default Pack |
Oops, something went wrong.