This commit is contained in:
Tipx-L 2023-10-04 00:49:59 -07:00
parent 055ab0af58
commit 882af5c6f9
3 changed files with 27528 additions and 414 deletions

27046
game/core-js-bundle.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -115,7 +115,10 @@
updateURL:'https://raw.githubusercontent.com/libccy/noname',
mirrorURL:'https://raw.fgit.cf/libccy/noname',
hallURL:'47.99.105.222',
assetURL:'',
assetURL:(()=>{
const nonameInited=localStorage.getItem('noname_inited');
return typeof nonameInited=='string'&&nonameInited!=='nodejs'?nonameInited:'';
})(),
changeLog:[],
updates:[],
canvasUpdates:[],
@ -8535,112 +8538,6 @@
return get.is.sameNature(natures,nature);
}
});
if (!('includes' in Array.prototype)) {
Object.defineProperty(Array.prototype, 'includes', {
enumerable: false,
configurable: true,
writable: true,
value: function (searchElement, fromIndex) {
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var o = Object(this);
var len = o.length >>> 0;
if (len === 0) {
return false;
}
var n = fromIndex | 0;
var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
function sameValueZero(x, y) {
return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y));
}
while (k < len) {
if (sameValueZero(o[k], searchElement)) {
return true;
}
k++;
}
return false;
}
});
}
if(!('flat' in Array.prototype)){
Object.defineProperty(Array.prototype, "flat", {
configurable:true,
enumerable:false,
writable:true,
value:function(depth){
if(typeof depth!='number') depth=1;
const arr=[];
for(let i=0;i<this.length;i++){
let obj=this[i];
if(depth>0&&Array.isArray(obj)){
obj.flat(depth-1).forEach(function(item){
arr.push(item)
});
}
else{
arr.push(obj);
}
}
return arr;
}
});
}
if (!("allSettled" in Promise)){
Object.defineProperty(Promise, "allSettled", {
configurable:true,
enumerable:false,
writable:true,
value:function allSettled(ary){
const Promise = this;
return new Promise((resolve, reject) => {
// if (Object.prototype.toString.call(arr) != "[object Array]")
if (!Array.isArray(ary))
return reject(new TypeError(`${typeof arr} ${ary} is not iterable(cannot read property Symbol(Symbol.iterator))`));
let args = Array.prototype.slice.call(ary);
if (args.length == 0) return resolve([]);
let arrCount = args.length;
function resolvePromise(index, value) {
if (typeof value == "object") {
var then = value.then;
if (typeof then == "function") {
then.call(value, (val) => {
args[index] = { status: "fulfilled", value: val };
if (--arrCount == 0) resolve(args);
}, (e) => {
args[index] = { status: "rejected", reason: e };
if (--arrCount == 0) resolve(args);
});
}
}
}
for (let i = 0; i < args.length; ++i)
resolvePromise(i, args[i]);
});
}
});
}
if(!Object.values){
Object.defineProperty(Object, 'values', {
configurable:true,
enumerable:false,
writable:true,
value:function(obj){
if(obj!== Object(obj)) {
throw new TypeError('Object.values called on a non-object');
}
var values=[];
for(var key in obj) {
if(obj.hasOwnProperty(key)){
values.push(obj[key]);
}
}
return values;
}
});
}
window.onkeydown=function(e){
if(!ui.menuContainer||!ui.menuContainer.classList.contains('hidden')){
if(e.keyCode==116||((e.ctrlKey||e.metaKey)&&e.keyCode==82)){
@ -8874,7 +8771,6 @@
else if(ua.includes('iphone')||ua.includes('ipad')||ua.includes('macintosh')){
lib.device='ios';
}
lib.assetURL=noname_inited;
}
if(lib.assetURL.includes('com.widget.noname.qingyao')){
@ -47525,7 +47421,7 @@
window.extension={};
fetch(`${extensionURL}catalog.js`,{
referrerPolicy:'no-referrer'
}).then(value=>value.text()).then(eval).then(loaded).catch(reason=>{
}).then(response=>response.text()).then(eval).then(loaded).catch(reason=>{
console.log(reason);
delete window.extension;
loading.innerHTML='连接失败:'+(reason instanceof Error?reason.message:String(reason));
@ -60962,5 +60858,11 @@
},
get:get
};
lib.init.init();
if('__core-js_shared__' in window) lib.init.init();
else{
const coreJSBundle=document.createElement('script');
coreJSBundle.onerror=coreJSBundle.onload=lib.init.init;
coreJSBundle.src=`${lib.assetURL}game/core-js-bundle.js`;
document.head.appendChild(coreJSBundle);
}
}

View File

@ -1,40 +1,139 @@
#arena.stone>.player.minskin[data-position='4']{top:calc(100% - 305px);left:calc(100% - 120px);}
#arena.stone>.card[data-position='4']{top:calc(100% - 297px);left:calc(100% - 112px);}
#arena.stone>.popup[data-position='4']{top:calc(100% - 340px);left:calc(100% - 112px);}
#arena.stone>.player.minskin[data-position='6']{top:calc(100% - 305px);left:calc(100% - 260px);}
#arena.stone>.card[data-position='6']{top:calc(100% - 297px);left:calc(100% - 252px);}
#arena.stone>.popup[data-position='6']{top:calc(100% - 340px);left:calc(100% - 252px);}
#arena.stone>.player.minskin[data-position='7']{top:calc(100% - 305px);left:140px;}
#arena.stone>.card[data-position='7']{top:calc(100% - 297px);left:148px;}
#arena.stone>.popup[data-position='7']{top:calc(100% - 340px);left:148px;}
#arena.stone>.player.minskin[data-position='5']{top:calc(100% - 305px);left:0;}
#arena.stone>.card[data-position='5']{top:calc(100% - 297px);left:8px;}
#arena.stone>.popup[data-position='5']{top:calc(100% - 340px);left:8px;}
#arena.stone>.player.minskin[data-position='4'] {
top: calc(100% - 305px);
left: calc(100% - 120px);
}
#arena.stone>.card[data-position='4'] {
top: calc(100% - 297px);
left: calc(100% - 112px);
}
#arena.stone>.popup[data-position='4'] {
top: calc(100% - 340px);
left: calc(100% - 112px);
}
#arena.stone>.player.minskin[data-position='6'] {
top: calc(100% - 305px);
left: calc(100% - 260px);
}
#arena.stone>.card[data-position='6'] {
top: calc(100% - 297px);
left: calc(100% - 252px);
}
#arena.stone>.popup[data-position='6'] {
top: calc(100% - 340px);
left: calc(100% - 252px);
}
#arena.stone>.player.minskin[data-position='7'] {
top: calc(100% - 305px);
left: 140px;
}
#arena.stone>.card[data-position='7'] {
top: calc(100% - 297px);
left: 148px;
}
#arena.stone>.popup[data-position='7'] {
top: calc(100% - 340px);
left: 148px;
}
#arena.stone>.player.minskin[data-position='5'] {
top: calc(100% - 305px);
left: 0;
}
#arena.stone>.card[data-position='5'] {
top: calc(100% - 297px);
left: 8px;
}
#arena.stone>.popup[data-position='5'] {
top: calc(100% - 340px);
left: 8px;
}
#arena.stone>.player.minskin[data-position='9'] {
top: 30px;
left: calc(100% - 120px);
}
#arena.stone>.card[data-position='9'] {
top: 38px;
left: calc(100% - 112px);
}
#arena.stone>.popup[data-position='9'] {
top: 160px;
left: calc(100% - 112px);
}
#arena.stone>.player.minskin[data-position='11'] {
top: 10px;
left: calc(100% - 260px);
}
#arena.stone>.card[data-position='11'] {
top: 18px;
left: calc(100% - 252px);
}
#arena.stone>.popup[data-position='11'] {
top: 140px;
left: calc(100% - 252px);
}
#arena.stone>.player.minskin[data-position='10'] {
top: 10px;
left: 140px;
}
#arena.stone>.card[data-position='10'] {
top: 18px;
left: 148px;
}
#arena.stone>.popup[data-position='10'] {
top: 140px;
left: 148px;
}
#arena.stone>.player.minskin[data-position='8'] {
top: 30px;
left: 0;
}
#arena.stone>.card[data-position='8'] {
top: 38px;
left: 8px;
}
#arena.stone>.popup[data-position='8'] {
top: 160px;
left: 8px;
}
#arena.stone>.player.minskin[data-position='9']{top:30px;left:calc(100% - 120px);}
#arena.stone>.card[data-position='9']{top:38px;left:calc(100% - 112px);}
#arena.stone>.popup[data-position='9']{top:160px;left:calc(100% - 112px);}
#arena.stone>.player.minskin[data-position='11']{top:10px;left:calc(100% - 260px);}
#arena.stone>.card[data-position='11']{top:18px;left:calc(100% - 252px);}
#arena.stone>.popup[data-position='11']{top:140px;left:calc(100% - 252px);}
#arena.stone>.player.minskin[data-position='10']{top:10px;left:140px;}
#arena.stone>.card[data-position='10']{top:18px;left:148px;}
#arena.stone>.popup[data-position='10']{top:140px;left:148px;}
#arena.stone>.player.minskin[data-position='8']{top:30px;left:0;}
#arena.stone>.card[data-position='8']{top:38px;left:8px;}
#arena.stone>.popup[data-position='8']{top:160px;left:8px;}
#arena:not(.chess).mobile>.player[data-position='0']>.name {
top: 30px;
}
#arena .player>.name {
top: 36px;
}
#arena.slim_player .player>.name {
top: 33px;
}
#arena .player.linked>.name {
transform: rotate(90deg) translate(120px, -96px);
}
#arena .player.linked>.name.name2 {
transform: rotate(90deg) translate(98px, -31px);
}
@ -42,6 +141,7 @@
#arena.oldlayout .player.linked>.name {
transform: none !important;
}
#arena.oldlayout .player.linked>.name.name2 {
transform: none !important;
}
@ -49,15 +149,18 @@
.player.minskin .judges {
top: 14px;
}
.player>.identity.menubutton.round {
padding: 0;
transform: scale(1.2) translate(-2px, 2px);
}
.card .wunature {
top: 74px;
left: 6px;
right: auto;
}
/* .player .equips{ */
/*z-index: 4;*/
/* } */
@ -70,6 +173,7 @@
#deck-builder {
overflow: hidden;
}
#deck-builder>.shadowed.list {
width: 200px;
height: 100%;
@ -79,10 +183,12 @@
transform: translateX(200px);
opacity: 0;
}
#deck-builder.shown>.shadowed.list {
transform: none;
opacity: 1;
}
#deck-builder>.shadowed.list>.menubutton.large.create {
position: absolute;
bottom: 10px;
@ -96,6 +202,7 @@
line-height: 50px;
z-index: 2;
}
#deck-builder>.shadowed.list>.list-container {
width: 100%;
left: 0;
@ -104,33 +211,41 @@
overflow-x: visible;
text-align: left;
}
#deck-builder>.shadowed.list>.list-container:not(.deck) {
z-index: 1;
}
#deck-builder>.shadowed.list>.list-container.deck {
pointer-events: none;
opacity: 0;
}
#deck-builder>.shadowed.list>.list-container.deck.shown {
pointer-events: auto;
opacity: 1;
}
#deck-builder>.shadowed.list>.list-container.deck>.card {
zoom: 0.8;
margin-bottom: 15px;
margin-top: 0;
transition: all 0s;
}
#deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n+1) {
margin-left: 15px;
}
#deck-builder>.shadowed.list>.list-container.deck>.card:nth-child(2n) {
margin-left: 7px;
}
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child,
#deck-builder>.shadowed.list>.list-container.deck>.card:first-child+div {
margin-top: 15px;
}
.deckitem {
position: relative;
width: 170px;
@ -151,28 +266,35 @@
white-space: nowrap;
transition: all 0s;
}
#window:not(.nopointer) .deckitem,
#window:not(.nopointer) #deck-builder>.shadowed.list>.menubutton.large.create,
#window:not(.nopointer) #deck-builder>.controls>div:not(*:last-child) {
cursor: pointer;
}
.dialog .deckitem {
margin-left: 8px;
margin-right: 9px;
}
.deckitem.random {
border-radius: 4px;
text-align: center;
}
.deckitem.random>span {
margin-left: 0;
}
.deckitem:last-child {
margin-bottom: 15px;
}
.deckitem>span {
margin-left: 46px;
}
.deckitem>.menubutton.round {
position: absolute;
left: -1px;
@ -180,6 +302,7 @@
width: 34px;
height: 34px;
}
#deck-builder>.shadowed.career {
width: 240px;
height: 240px;
@ -191,10 +314,12 @@
transition-duration: 0.3s;
z-index: 8;
}
#deck-builder>.shadowed.career.shown {
transform: scale(1) translateX(0);
opacity: 1;
}
#deck-builder>.shadowed.career>div {
width: 80px;
height: 80px;
@ -203,16 +328,19 @@
position: relative;
display: inline-block;
}
#deck-builder>.shadowed.career>div>.menubutton.round {
left: 15px;
top: 5px;
}
#deck-builder>.shadowed.career>div>.text {
font-size: 12px;
width: 100%;
text-align: center;
top: 58px;
}
#deck-builder>.dialog.fixed {
left: auto;
right: 240px;
@ -225,16 +353,19 @@
/*-webkit-animation:dialog_start2 0.5s;*/
transition: all 0.5s;
}
#deck-builder:not(.shown)>.dialog.fixed {
opacity: 0;
transform: scale(0.8);
pointer-events: none;
}
#deck-builder>.dialog.fixed.shown {
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
#deck-builder>.controls {
opacity: 0;
height: 50px;
@ -245,12 +376,14 @@
z-index: 9;
pointer-events: none;
}
#deck-builder>.controls>div {
position: relative;
margin-top: 5px;
margin-left: 5px;
margin-right: 5px;
}
#deck-builder>.controls>.card-count {
position: absolute;
width: 100px;
@ -262,15 +395,19 @@
line-height: 50px;
margin: 0;
}
#deck-builder>.controls>div:last-child {
margin-right: 40px;
white-space: nowrap;
user-select: text;
-webkit-user-select: text;
}
#deck-builder>.controls.shown {
opacity: 1;
pointer-events: auto;
}
#arena>.player.stone_deck {
transform: scale(1) translateX(100px);
opacity: 0;
@ -278,13 +415,16 @@
left: calc(5% + 50px);
top: calc(50% - 90px);
}
#arena>.player.stone_deck.shown {
transform: scale(0.8);
opacity: 1;
}
#arena>.player.stone_deck.shown.removing {
transform: scale(0.6) translateX(-100px);
}
#arena>.player.stone_deck>div:not(.avatar):not(.avatar2) {
display: none !important;
}
@ -294,54 +434,80 @@
opacity: 1;
}*/
@keyframes skillbarglow {
0%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
50%{box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px,rgba(255, 0, 0, 0.4) 0 0 5px,
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px}
100%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
0% {
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
}
50% {
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px,
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px
}
100% {
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
}
}
@-webkit-keyframes skillbarglow {
0%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
50%{box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px,rgba(255, 0, 0, 0.4) 0 0 5px,
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px}
100%{box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px}
0% {
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
}
50% {
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px,
rgba(255, 0, 0, 0.4) 0 0 12px, rgba(255, 0, 0, 1) 0 0 30px, rgba(255, 0, 0, 0.2) 0 0 30px
}
100% {
box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(255, 0, 0, 0.4) 0 0 5px
}
}
div[data-career='mage'] {
background-image: url('../../image/mode/stone/career/mage.png');
background-size: cover;
}
div[data-career='druid'] {
background-image: url('../../image/mode/stone/career/druid.png');
background-size: cover;
}
div[data-career='hunter'] {
background-image: url('../../image/mode/stone/career/hunter.png');
background-size: cover;
}
div[data-career='shaman'] {
background-image: url('../../image/mode/stone/career/shaman.png');
background-size: cover;
}
div[data-career='paladin'] {
background-image: url('../../image/mode/stone/career/paladin.png');
background-size: cover;
}
div[data-career='rogue'] {
background-image: url('../../image/mode/stone/career/rogue.png');
background-size: cover;
}
div[data-career='priest'] {
background-image: url('../../image/mode/stone/career/priest.png');
background-size: cover;
}
div[data-career='warrior'] {
background-image: url('../../image/mode/stone/career/warrior.png');
background-size: cover;
}
div[data-career='warlock'] {
background-image: url('../../image/mode/stone/career/warlock.png');
background-size: cover;
}
div[data-career='knight'] {
background-image: url('../../image/mode/stone/career/knight.png');
background-size: cover;