mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-16 20:24:31 +08:00
Deploying to gh-pages from @ 8faeeb9aca 🚀
This commit is contained in:
1 parent
5a3bf20a23
commit
073ad8c229
30 files changed
+278
-269
No files matched your search
+5
-5
@@ -41,7 +41,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
|
||||
"elemental": {"name":"元素生物","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
"steelGuard": {"name":"铁守卫","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[18],"value":20},
|
||||
"evilBat": {"name":"邪恶蝙蝠","hp":1000,"atk":800,"def":350,"money":1,"exp":40,"point":0,"special":[2]},
|
||||
"frozenSkeleton": {"name":"冻死骨","hp":7500,"atk":2500,"def":1000,"money":2,"exp":90,"point":0,"special":[1,20],"crit":500,"ice":10},
|
||||
"frozenSkeleton": {"name":"冻死骨","hp":7500,"atk":2500,"def":1000,"money":2,"exp":90,"point":0,"special":[1,20],"crit":500,"ice":10,"description":"弱小,无助,哀嚎,这就是残酷的现实。哪怕你身处极寒之中,也难有人对你伸出援手。人类总会帮助他人,但在这绝望的环境下,人类的本性便暴露无遗。这一个个精致却又无情的骷髅,便是那些在极寒之中死去的冤魂。"},
|
||||
"silverSlimelord": {"name":"银怪王","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
"goldSlimelord": {"name":"金怪王","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
"skeletonWarrior": {"name":"骷髅士兵","hp":500,"atk":100,"def":20,"money":0,"exp":12,"point":0,"special":[1],"crit":500,"description":"看来未来的机器人并不满足与赤手空拳,他们也拿上了武器。"},
|
||||
@@ -68,13 +68,13 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
|
||||
"bowman": {"name":"猎人","hp":500,"atk":100,"def":50,"money":0,"exp":16,"point":0,"special":[24],"value":75,"description":"没人知道这些人怎么做出的弓,也没人知道他们怎么收集的这么多剑。而其他人唯一能做的事,便是远离他们。"},
|
||||
"liteBowman": {"name":"山间猎手","hp":1200,"atk":200,"def":60,"money":1,"exp":27,"point":0,"special":[24],"description":"这箭,或许就是那些败于他弓下的那些不知好歹的莽夫的骨头吧。或许,绕开他的视野才是躲避他的攻击的最好办法。"},
|
||||
"crimsonZombie": {"name":"勇气之兽","hp":1800,"atk":2000,"def":-100,"money":1,"exp":35,"point":0,"special":[],"description":"没人会愿意跟这些野兽一起吧?至少我是不想。上天赋予的勇气,却让他们更加渴望鲜血,这不是很可悲吗?"},
|
||||
"watcherSlime": {"name":"邪眼史莱姆","hp":5000,"atk":1200,"def":600,"money":1,"exp":50,"point":0,"special":[17]},
|
||||
"mutantSlimeman": {"name":"变异史莱姆人","hp":350,"atk":70,"def":27,"money":0,"exp":13,"point":0,"special":[]},
|
||||
"watcherSlime": {"name":"邪眼史莱姆","hp":5000,"atk":1200,"def":600,"money":1,"exp":50,"point":0,"special":[17],"description":"成群结队地出现在森林中,看遍百花齐放,经历万物凋零。他们守在这森林中,将那些企图突破这里的人置于死地。"},
|
||||
"mutantSlimeman": {"name":"变异史莱姆人","hp":350,"atk":70,"def":27,"money":0,"exp":13,"point":0,"special":[],"description":"据说,史莱姆人也会基因突变,这样就产生了这种变异史莱姆人。"},
|
||||
"devilKnight": {"name":"恶灵骑士","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
"grayPriest": {"name":"智慧法王","hp":3000,"atk":600,"def":250,"money":1,"exp":40,"point":0,"special":[13]},
|
||||
"grayPriest": {"name":"智慧法王","hp":3000,"atk":600,"def":250,"money":1,"exp":40,"point":0,"special":[13],"description":"法杖?他已经不需要了。没有人知道他长什么样,只知道他的智慧已非常人能及,只知道他的法术能让一个人在瞬间化为灰烬。"},
|
||||
"greenGateKeeper": {"name":"睿智雕像","hp":5000,"atk":1250,"def":900,"money":1,"exp":65,"point":0,"special":[1],"crit":1000},
|
||||
"ghostSoldier": {"name":"山间骷髅","hp":750,"atk":180,"def":40,"money":0,"exp":18,"point":0,"special":[],"description":"这次,他们穿上了盔甲。"},
|
||||
"frostBat": {"name":"寒霜蝙蝠","hp":20000,"atk":3200,"def":2000,"money":2,"exp":2000,"point":0,"special":[4,20],"ice":90},
|
||||
"frostBat": {"name":"寒霜蝙蝠","hp":20000,"atk":3200,"def":2000,"money":2,"exp":2000,"point":0,"special":[4,20],"ice":90,"description":"“穿梭于寒风里,行走在锋芒中”,寒霜蝙蝠将这句话运用到了极致。别看那小小的身体,它足以将你拆的七零八落。在它面前,任何小把戏都会被它看得一清二楚。它那凶恶的眼神,是否在哪里见过呢?"},
|
||||
"blackKing": {"name":"黑衣魔王","hp":1000,"atk":500,"def":0,"money":1000,"exp":1000,"point":0,"special":[],"notBomb":true},
|
||||
"yellowKing": {"name":"黄衣魔王","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
"greenKing": {"name":"青衣武士","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
|
||||
@@ -34,7 +34,7 @@ main.floors.MT36=
|
||||
"从本区域开始将会出现各种光环怪,这需要你认真思考解决办法",
|
||||
"注意坚固怪受到光环加成后可能无法被打败,因为会首先计算坚固属性再计算光环",
|
||||
"本区域的地图较为复杂,请善用楼传的小地图功能",
|
||||
"本区域的跳跃技能效果会比较奇怪()"
|
||||
"本区域不能使用跳跃技能"
|
||||
]
|
||||
},
|
||||
"changeFloor": {
|
||||
|
||||
+12
-12
@@ -49,18 +49,18 @@ main.floors.MT44=
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0,617, 0, 0, 0,600, 0, 0],
|
||||
[ 92, 0,584,584,584, 0,543, 0, 0,604,604,604, 0, 0, 0],
|
||||
[584, 0,584, 0, 0, 0, 0, 0, 0, 0,492, 0, 0, 0, 0],
|
||||
[584, 0,643, 0, 0, 0, 0,595, 0,602,604,610,70176,70177,70177],
|
||||
[584,584,584,584,584, 0,584,584,494, 0, 0, 0,608, 0, 94],
|
||||
[ 0, 0, 0, 0, 0,613, 0, 0,584,614,584,584,70208,70209,70209],
|
||||
[586, 0, 0, 0, 0,588, 0, 0,584, 0, 0,584,584, 0, 0],
|
||||
[586, 0,588,588,588,588,602,584,584,584, 0,584,584, 0, 0],
|
||||
[586, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[586,586,586, 0,587,587, 0, 0, 0, 0, 0,585,585, 0, 0],
|
||||
[586, 0, 0, 0, 0,587, 0,617,585,585,492, 33, 33, 0, 0],
|
||||
[586, 0,586, 0,587,587,587, 0,584,584,584,584,584, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0,617, 34,403, 34,600, 0, 0],
|
||||
[ 92, 0,584,584,584, 0,543, 0, 34,604,604,604, 34, 0, 0],
|
||||
[584, 0,584, 0, 0, 0, 0, 0,378, 0,492, 0,378, 0, 0],
|
||||
[584, 0,643, 0, 0,381, 0,595, 0,602,604,610,70176,70177,70177],
|
||||
[584,584,584,584,584, 0,584,584,494, 0, 34, 0,608, 0, 94],
|
||||
[ 0, 0, 0, 0, 0,274,376, 0,584,614,584,584,70208,70209,70209],
|
||||
[586, 0, 0, 0, 0,588, 0,381,584, 21, 0,584,584, 0, 0],
|
||||
[586,617,588,588,588,588,602,584,584,584, 0,584,584, 0, 0],
|
||||
[586, 0, 0, 0,274, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0],
|
||||
[586,586,586,610,587,587,595, 0,376, 0, 0,585,585, 0, 0],
|
||||
[586, 0,600, 0, 0,587, 33,617,585,585,492, 33, 33, 0, 0],
|
||||
[586, 0,586,614,587,587,587, 0,584,584,584,584,584, 0, 0],
|
||||
[ 92, 0,586, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[584,584,584,584,584,584,584, 93, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
|
||||
+66
-40
@@ -1,45 +1,71 @@
|
||||
main.floors.MT48=
|
||||
{
|
||||
"floorId": "MT48",
|
||||
"title": "冰封高原",
|
||||
"name": "48",
|
||||
"width": 15,
|
||||
"height": 15,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"cannotViewMap": false,
|
||||
"images": [],
|
||||
"ratio": 8,
|
||||
"defaultGround": "T580",
|
||||
"bgm": "winter.mp3",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
"floorId": "MT48",
|
||||
"title": "冰封高原",
|
||||
"name": "48",
|
||||
"width": 15,
|
||||
"height": 15,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"cannotViewMap": false,
|
||||
"images": [],
|
||||
"ratio": 8,
|
||||
"defaultGround": "T580",
|
||||
"bgm": "winter.mp3",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
[ 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0],
|
||||
[ 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1],
|
||||
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0],
|
||||
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0],
|
||||
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0],
|
||||
[ 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0],
|
||||
[ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0],
|
||||
[ 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0],
|
||||
[ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0],
|
||||
[ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0]
|
||||
],
|
||||
"bgmap": [
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300],
|
||||
[300,300,300,300,300,300,300,300,300,300,300,300,300,300,300]
|
||||
],
|
||||
"fgmap": [
|
||||
|
||||
],
|
||||
"bg2map": [
|
||||
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]}},e:function e(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();normalCompletion=step.done;return step},e:function e(_e3){didErr=true;err=_e3},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]()}finally{if(didErr)throw err}}}}function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap;var cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj}if(obj===null||_typeof(obj)!=="object"&&typeof obj!=="function"){return{"default":obj}}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj)}return newObj}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"]&&(_r=_i["return"](),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _regeneratorRuntime(){"use strict";_regeneratorRuntime=function _regeneratorRuntime(){return exports};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key]}try{define({},"")}catch(err){define=function define(obj,key,value){return obj[key]=value}}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new ConLine truncated
|
||||
Vendored
-17
@@ -1,17 +0,0 @@
|
||||
"use strict";function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}(function(){function slide(arr,delta){if(delta===0)return arr;delta%=arr.length;if(delta>0){arr.unshift.apply(arr,_toConsumableArray(arr.splice(arr.length-delta,delta)));return arr}if(delta<0){arr.push.apply(arr,_toConsumableArray(arr.splice(0,-delta)));return arr}}function backDir(dir){return{up:"down",down:"up",left:"right",right:"left"}[dir]}function has(v){return v!==null&&v!==void 0}function maxGameScale(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var index=core.domStyle.availableScale.indexOf(core.domStyle.scale);core.control.setDisplayScale(core.domStyle.availableScale.length-1-index-n);if(!core.isPlaying()&&core.flags.enableHDCanvas){core.domStyle.ratio=Math.max(window.devicePixelRatio||1,core.domStyle.scale);core.resize()}}core.plugin.utils={slide:slide,backDir:backDir,has:has,maxGameScale:maxGameScale}})();
|
||||
"use strict";(function(){if(main.replayChecking)return core.plugin.gameUi={};function openItemShop(itemShopId){if(!main.replayChecking){core.plugin.openedShopId=itemShopId;core.plugin.shopOpened.value=true}}function updateVueStatusBar(){if(main.replayChecking)return;core.plugin.statusBarStatus.value=!core.plugin.statusBarStatus.value;core.checkMarkedEnemy()}ui.prototype.drawBook=function(){if(!core.isReplaying())return core.plugin.bookOpened.value=true};ui.prototype._drawToolbox=function(){if(!core.isReplaying())return core.plugin.toolOpened.value=true};ui.prototype._drawEquipbox=function(){if(!core.isReplaying())return core.plugin.equipOpened.value=true};ui.prototype.drawFly=function(){if(!core.isReplaying())return core.plugin.flyOpened.value=true};control.prototype.updateStatusBar_update=function(){core.control.updateNextFrame=false;if(!core.isPlaying()||core.hasFlag("__statistics__"))return;core.control.controldata.updateStatusBar();if(!core.control.noAutoEvents)core.checkAutoEvents();core.control._updateStatusBar_setToolboxIcon();core.clearRouteFolding();core.control.noAutoEvents=true;updateVueStatusBar()};control.prototype.showStatusBar=function(){if(main.mode=="editor")return;core.removeFlag("hideStatusBar");core.plugin.showStatusBar.value=true;core.dom.tools.hard.style.display="block";core.dom.toolBar.style.display="block"};control.prototype.hideStatusBar=function(showToolbox){if(main.mode=="editor")return;if(!core.domStyle.showStatusBar)this.showStatusBar();if(core.isReplaying())showToolbox=true;core.plugin.showStatusBar.value=false;var toolItems=core.dom.tools;core.setFlag("hideStatusBar",true);core.setFlag("showToolbox",showToolbox||null);if(!core.domStyle.isVertical&&!core.flags.extendToolbar||!showToolbox){for(var i=0;i<toolItems.length;++i)toolItems[i].style.display="none"}if(!core.domStyle.isVertical&&!core.flags.extendToolbar){core.dom.toolBar.style.display="none"}};function showChapter(chapter){if(core.isReplaying())return;core.plugin.chapterContent.value=chapter;core.plugin.chapterShowed.value=true}function openSkill(){if(core.isReplaying())return;core.plugin.skillOpened.value=true}core.plugin.gameUi={openItemShop:openItemShop,openSkill:openSkill,showChapter:showChapter}})();
|
||||
"use strict";(function(){var openItemShop=core.plugin.gameUi.openItemShop;function openShop(shopId,noRoute){var shop=core.status.shops[shopId];if(!this.canOpenShop(shopId)){core.drawTip("\u8BE5\u5546\u5E97\u5C1A\u672A\u5F00\u542F");return false}if(shop.item){if(openItemShop)openItemShop(shopId);return}return true}function isShopVisited(id){var _flags,_flags$__shops__;(_flags$__shops__=(_flags=flags).__shops__)!==null&&_flags$__shops__!==void 0?_flags$__shops__:_flags.__shops__={};var shops=core.getFlag("__shops__");if(!shops[id])shops[id]={};return shops[id].visited}function listShopIds(){return Object.keys(core.status.shops).filter(function(id){return core.plugin.shop.isShopVisited(id)||!core.status.shops[id].mustEnable})}function canOpenShop(id){if(this.isShopVisited(id))return true;var shop=core.status.shops[id];if(shop.item||shop.commonEvent||shop.mustEnable)return false;return true}function setShopVisited(id,visited){if(!core.hasFlag("__shops__"))core.setFlag("__shops__",{});var shops=core.getFlag("__shops__");if(!shops[id])shops[id]={};if(visited)shops[id].visited=true;else delete shops[id].visited}function canUseQuickShop(){if(core.status.thisMap.canUseQuickShop===false)return"\u5F53\u524D\u697C\u5C42\u4E0D\u80FD\u4F7F\u7528\u5FEB\u6377\u5546\u5E97\u3002";return null}core.plugin.shop={openShop:openShop,isShopVisited:isShopVisited,listShopIds:listShopIds,canOpenShop:canOpenShop,setShopVisited:setShopVisited,canUseQuickShop:canUseQuickShop}})();
|
||||
"use strict";function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();normalCompletion=step.done;return step},e:function e(_e2){didErr=true;err=_e2},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}(function(){var values={1:["crit"],6:["n"],7:["hungry"],8:["together"],10:["courage"],11:["charge"]};var cannotStudy=[9,12,14,15,24];function canStudySkill(number){var _core$status$hero,_core$status$hero$spe;var s=(_core$status$hero$spe=(_core$status$hero=core.status.hero).special)!==null&&_core$status$hero$spe!==void 0?_core$status$hero$spe:_core$status$hero.special={num:[],last:[]};if(core.plugin.skillTree.getSkillLevel(11)===0)return false;if(s.num.length>=1)return false;if(s.num.includes(number))return false;if(cannotStudy.includes(number))return false;return true}function studySkill(enemy,number){var _core$status$hero2,_core$status$hero2$sp,_values$number;(_core$status$hero2$sp=(_core$status$hero2=core.status.hero).special)!==null&&_core$status$hero2$sp!==void 0?_core$status$hero2$sp:_core$status$hero2.special={num:[],last:[]};var s=core.status.hero.special;var specials=core.getSpecials();var special=specials[number-1][1];if(special instanceof Function)special=special(enemy);if(!canStudySkill(number)){if(!main.replayChecking){core.tip("error","\u65E0\u6CD5\u5B66\u4E60".concat(special))}return}s.num.push(number);s.last.push(core.plugin.skillTree.getSkillLevel(11)*3+2);var value=(_values$number=values[number])!==null&&_values$number!==void 0?_values$number:[];var _iterator=_createForOfIteratorHelper(value),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var key=_step.value;s[key]=enemy[key]}}catch(err){_iterator.e(err)}finally{_iterator.f()}}function forgetStudiedSkill(num,i){var _values$number2;var s=core.status.hero.special;var index=i!==void 0&&i!==null?i:s.num.indexOf(num);if(index===-1)return;s.num.splice(index,1);s.last.splice(index,1);var value=(_values$number2=values[number])!==null&&_values$number2!==void 0?_values$number2:[];var _iterator2=_createForOfIteratorHelper(value),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var key=_step2.value;delete s[key]}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}function declineStudiedSkill(){var _core$status$hero3,_core$status$hero3$sp;var s=(_core$status$hero3$sp=(_core$status$hero3=core.status.hero).special)!==null&&_core$status$hero3$sp!==void 0?_core$status$hero3$sp:_core$status$hero3.special={num:[],last:[]};s.last=s.last.map(function(v){return v-1})}function checkStudiedSkill(){var s=core.status.hero.special;for(var i=0;i<s.last.length;i++){if(s.last[i]<=0){this.forgetStudiedSkill(void 0,i);i--}}}core.plugin.study={canStudySkill:canStudySkill,studySkill:studySkill,forgetStudiedSkill:forgetStudiedSkill,declineStudiedSkill:declineStudiedSkill,checkStudiedSkill:checkStudiedSkill}})();
|
||||
"use strict";(function(){function getHeroStatusOn(name,x,y,floorId){return getRealStatusOf(core.status.hero,name,x,y,floorId)}function getHeroStatusOf(status,name,x,y,floorId){return getRealStatus(status,name,x,y,floorId)}function getRealStatus(status,name,x,y,floorId){var _status$name,_x,_y,_floorId;if(name instanceof Array){return Object.fromEntries(name.map(function(v){return[v,v!=="all"&&getRealStatus(status,v,x,y,floorId)]}))}if(name==="all"){return Object.fromEntries(Object.keys(core.status.hero).map(function(v){return[v,v!=="all"&&getRealStatus(status,v,x,y,floorId)]}))}var s=(_status$name=status===null||status===void 0?void 0:status[name])!==null&&_status$name!==void 0?_status$name:core.status.hero[name];if(s===null||s===void 0){throw new ReferenceError("Wrong hero status property name is delivered: ".concat(name))}(_x=x)!==null&&_x!==void 0?_x:x=core.status.hero.loc.x;(_y=y)!==null&&_y!==void 0?_y:y=core.status.hero.loc.y;(_floorId=floorId)!==null&&_floorId!==void 0?_floorId:floorId=core.status.floorId;if(name==="atk"||name==="def"){var _window$flags,_window$flags2;s+=(_window$flags=(_window$flags2=window.flags)===null||_window$flags2===void 0?void 0:_window$flags2["night_".concat(floorId)])!==null&&_window$flags!==void 0?_window$flags:0}if(flags.bladeOn&&flags.blade){var level=core.plugin.skillTree.getSkillLevel(2);if(name==="atk"){s*=1+0.1*level}if(name==="def"){s*=1-0.1*level}}if(flags.shield&&flags.shieldOn){var _level=core.plugin.skillTree.getSkillLevel(10);if(name==="atk"){s*=1-0.1*_level}if(name==="def"){s*=1+0.1*_level}}if(typeof s==="number")s*=core.getBuff(name);if(typeof s==="number")s=Math.floor(s);return s}core.plugin.hero={getHeroStatusOf:getHeroStatusOf,getHeroStatusOn:getHeroStatusOn}})();
|
||||
"use strict";(function(){function createCanvas(name,zIndex){if(!name)return;var canvas=document.createElement("canvas");canvas.id=name;canvas.className="gameCanvas";if(main.mode!="editor")canvas.style.zIndex=zIndex||0;document.getElementById("gameDraw").appendChild(canvas);var ctx=canvas.getContext("2d");core.canvas[name]=ctx;return canvas}var bg2Canvas=createCanvas("bg2",20);var fg2Canvas=createCanvas("fg2",63);core.bigmap.canvas=["bg2","fg2","bg","event","event2","fg","damage"];core.initStatus.bg2maps={};core.initStatus.fg2maps={};if(main.mode=="editor"){document.getElementById("mapEdit").insertBefore(bg2Canvas,document.getElementById("event"));document.getElementById("mapEdit").insertBefore(fg2Canvas,document.getElementById("ebm"));var num=4;editor.dom.bg2c=core.canvas.bg2.canvas;editor.dom.bg2Ctx=core.canvas.bg2;editor.dom.fg2c=core.canvas.fg2.canvas;editor.dom.fg2Ctx=core.canvas.fg2;editor.dom.maps.push("bg2map","fg2map");editor.dom.canvas.push("bg2","fg2");var createCanvasBtn=function createCanvasBtn(name){var input=document.createElement("input");var id="layerMod"+num++;var value=name+"map";input.type="radio";input.name="layerMod";input.id=id;input.value=value;editor.dom[id]=input;input.onchange=function(){editor.uifunctions.setLayerMod(value)};return input};var createCanvasBtn_mobile=function createCanvasBtn_mobile(name){var input=document.createElement("option");var id="layerMod"+num++;var value=name+"map";input.name="layerMod";input.value=value;editor.dom[id]=input;return input};if(!editor.isMobile){var input=createCanvasBtn("bg2");var input2=createCanvasBtn("fg2");var child=document.getElementById("layerMod"),parent=child.parentNode;parent.insertBefore(input,child);var txt=document.createTextNode("\u80CC2");parent.insertBefore(txt,child);parent.appendChild(input2);var txt2=document.createTextNode("\u524D2");parent.appendChild(txt2)}else{var input=createCanvasBtn_mobile("bg2");var input2=createCanvasBtn_mobile("fg2");input.innerText="\u80CC\u666F2";input2.innerText="\u524D\u666F2";var parent=document.getElementById("layerMod");parent.insertBefore(input,parent.children[1]);parent.appendChild(input2)}}core.maps._loadFloor_doNotCopy=function(){return["firstArrive","eachArrive","blocks","parallelDo","map","bgmap","fgmap","bg2map","fg2map","events","changeFloor","afterBattle","afterGetItem","afterOpenDoor","cannotMove"]};core.maps._drawBg_draw=function(floorId,toDrawCtx,cacheCtx,config){config.ctx=cacheCtx;core.maps._drawBg_drawBackground(floorId,config);core.maps._drawFloorImages(floorId,config.ctx,"bg",null,null,config.onMap);core.maps._drawBgFgMap(floorId,"bg",config);if(config.onMap){core.drawImage(toDrawCtx,cacheCtx.canvas,core.bigmap.v2?-32:0,core.bigmap.v2?-32:0);core.clearMap("bg2");core.clearMap(cacheCtx)}core.maps._drawBgFgMap(floorId,"bg2",config);if(config.onMap)core.drawImage("bg2",cacheCtx.canvas,core.bigmap.v2?-32:0,core.bigmap.v2?-32:0);config.ctx=toDrawCtx};core.maps._drawFg_draw=function(floorId,toDrawCtx,cacheCtx,config){config.ctx=cacheCtx;core.maps._drawFloorImages(floorId,config.ctx,"fg",null,null,config.onMap);core.maps._drawBgFgMap(floorId,"fg",config);if(config.onMap){core.drawImage(toDrawCtx,cacheCtx.canvas,core.bigmap.v2?-32:0,core.bigmap.v2?-32:0);core.clearMap("fg2");core.clearMap(cacheCtx)}core.maps._drawBgFgMap(floorId,"fg2",config);if(config.onMap)core.drawImage("fg2",cacheCtx.canvas,core.bigmap.v2?-32:0,core.bigmap.v2?-32:0);config.ctx=toDrawCtx};core.maps._generateMovableArray_arrays=function(floorId){return{bgArray:this.getBgMapArray(floorId),fgArray:this.getFgMapArray(floorId),eventArray:this.getMapArray(floorId),bg2Array:this._getBgFgMapArray("bg2",floorId),fg2Array:this._getBgFgMapArray("fg2",floorId)}}})();
|
||||
"use strict";(function(){var slide=core.plugin.utils.slide;var list=["tower6"];function setLoopMap(offset,floorId){var floor=core.status.maps[floorId];if(offset<9){moveMap(floor.width-17,floorId)}if(offset>floor.width-9){moveMap(17-floor.width,floorId)}}function autoSetLoopMap(floorId){setLoopMap(core.status.hero.loc.x,floorId)}function checkLoopMap(){if(isLoopMap(core.status.floorId)){autoSetLoopMap(core.status.floorId)}}function moveMap(delta,floorId){core.extractBlocks(floorId);var floor=core.status.maps[floorId];core.setHeroLoc("x",core.status.hero.loc.x+delta);flags["loop_".concat(floorId)]+=delta;flags["loop_".concat(floorId)]%=floor.width;var origin=floor.blocks.slice();for(var i=0;i<origin.length;i++){core.removeBlockByIndex(0,floorId);core.removeGlobalAnimate(origin[i].x,origin[i].y)}origin.forEach(function(v){var to=v.x+delta;if(to>=floor.width)to-=floor.width;if(to<0)to+=floor.width;core.setBlock(v.id,to,v.y,floorId,true);core.setMapBlockDisabled(floorId,to,v.y,false)});core.drawMap();core.drawHero()}function isLoopMap(floorId){return list.includes(floorId)}events.prototype._sys_changeFloor=function(data,callback){data=data.event.data;var heroLoc={};if(isLoopMap(data.floorId)){var _flags,_ref,_flags$_ref;var floor=core.status.maps[data.floorId];(_flags$_ref=(_flags=flags)[_ref="loop_".concat(data.floorId)])!==null&&_flags$_ref!==void 0?_flags$_ref:_flags[_ref]=0;var tx=data.loc[0]+flags["loop_".concat(data.floorId)];tx%=floor.width;if(tx<0)tx+=floor.width;heroLoc={x:tx,y:data.loc[1]}}else if(data.loc)heroLoc={x:data.loc[0],y:data.loc[1]};if(data.direction)heroLoc.direction=data.direction;if(core.status.event.id!="action")core.status.event.id=null;core.changeFloor(data.floorId,data.stair,heroLoc,data.time,function(){core.replay();if(callback)callback()})};events.prototype.trigger=function(x,y,callback){var _executeCallback=function _executeCallback(){if(callback){setTimeout(callback,1)}return};if(core.status.gameOver)return _executeCallback();if(core.status.event.id=="action"){core.insertAction({type:"function","function":"function () { core.events._trigger_inAction("+x+","+y+"); }",async:true},null,null,null,true);return _executeCallback()}if(core.status.event.id)return _executeCallback();var block=core.getBlock(x,y);var id=core.status.floorId;var loop=isLoopMap(id);if(loop&&flags["loop_".concat(id)]!==0){if(block&&block.event.trigger==="changeFloor"){delete block.event.trigger;core.maps._addInfo(block)}else{var floor=core.status.maps[id];var tx=x-flags["loop_".concat(id)];tx%=floor.width;if(tx<0)tx+=floor.width;var c=core.floors[id].changeFloor["".concat(tx,",").concat(y)];if(c){var b={event:{},x:tx,y:y};b.event.data=c;b.event.trigger="changeFloor";block=b}}}if(block==null)return _executeCallback();if(block.event.script){core.clearRouteFolding();try{eval(block.event.script)}catch(ee){console.error(ee)}}if(block.event.event){core.clearRouteFolding();core.insertAction(block.event.event,block.x,block.y);return _executeCallback()}if(block.event.trigger&&block.event.trigger!="null"){var noPass=block.event.noPass,trigger=block.event.trigger;if(noPass)core.clearAutomaticRouteNode(x,y);if(trigger=="changeFloor"&&!noPass&&this._trigger_ignoreChangeFloor(block)&&!loop)return _executeCallback();core.status.automaticRoute.moveDirectly=false;this.doSystemEvent(trigger,block)}return _executeCallback()};maps.prototype._getBgFgMapArray=function(name,floorId,noCache){floorId=floorId||core.status.floorId;if(!floorId)return[];var width=core.floors[floorId].width;var height=core.floors[floorId].height;if(!noCache&&core.status[name+"maps"][floorId])return core.status[name+"maps"][floorId];var arr=main.mode=="editor"&&!(window.editor&&editor.uievent&&editor.uievent.isOpen)?core.cloneArray(editor[name+"map"]):null;if(arr==null)arr=core.cloneArray(core.floors[floorId][name+"map"]||[]);if(isLoopMap(floorId)&&window.flags){var _flags2,_ref2,_flags2$_ref;(_flags2$_ref=(_flags2=flags)[_ref2="loop_".concat(floorId)])!==null&&_flags2$_ref!==void 0?_flags2$_ref:_flags2[_ref2]=0;arr.forEach(function(v){slide(v,flags["loop_".concat(floorId)]%width)})}for(var y=0;y<height;++y){if(arr[y]==null)arr[y]=Array(width).fill(0)}(core.getFlag("__"+name+"v__",{})[floorId]||[]).forEach(function(one){arr[one[1]][one[0]]=one[2]||0});(core.getFlag("__"+name+"d__",{})[floorId]||[]).forEach(function(one){arr[one[1]][one[0]]=0});if(main.mode=="editor"){for(var x=0;x<width;x++){for(var y=0;y<height;y++){arr[y][x]=arr[y][x].idnum||arr[y][x]||0}}}if(core.status[name+"maps"])core.status[name+"maps"][floorId]=arr;return arr};core.plugin.loopMap={checkLoopMap:checkLoopMap}})();
|
||||
"use strict";(function(){function removeMaps(fromId,toId,force){var _flags,_flags$__forceDelete_;toId=toId||fromId;var fromIndex=core.floorIds.indexOf(fromId),toIndex=core.floorIds.indexOf(toId);if(toIndex<0)toIndex=core.floorIds.length-1;flags.__visited__=flags.__visited__||{};flags.__removed__=flags.__removed__||[];flags.__disabled__=flags.__disabled__||{};flags.__leaveLoc__=flags.__leaveLoc__||{};(_flags$__forceDelete_=(_flags=flags).__forceDelete__)!==null&&_flags$__forceDelete_!==void 0?_flags$__forceDelete_:_flags.__forceDelete__={};var deleted=false;for(var i=fromIndex;i<=toIndex;++i){var floorId=core.floorIds[i];if(core.status.maps[floorId].deleted)continue;delete flags.__visited__[floorId];flags.__removed__.push(floorId);delete flags.__disabled__[floorId];delete flags.__leaveLoc__[floorId];(core.status.autoEvents||[]).forEach(function(event){if(event.floorId==floorId&&event.currentFloor){core.autoEventExecuting(event.symbol,false);core.autoEventExecuted(event.symbol,false)}});core.status.maps[floorId].deleted=true;core.status.maps[floorId].canFlyTo=false;core.status.maps[floorId].canFlyFrom=false;core.status.maps[floorId].cannotViewMap=true;if(force){core.status.maps[floorId].forceDelete=true;flags.__forceDelete__[floorId]=true}deleteFlags(floorId);deleted=true}if(deleted&&!main.replayChecking){core.splitArea()}}function deleteFlags(floorId){delete flags["jump_".concat(floorId)];delete flags["inte_".concat(floorId)];delete flags["loop_".concat(floorId)];delete flags["melt_".concat(floorId)];delete flags["night_".concat(floorId)]}function resumeMaps(fromId,toId){toId=toId||fromId;var fromIndex=core.floorIds.indexOf(fromId),toIndex=core.floorIds.indexOf(toId);if(toIndex<0)toIndex=core.floorIds.length-1;flags.__removed__=flags.__removed__||[];for(var i=fromIndex;i<=toIndex;++i){var floorId=core.floorIds[i];if(!core.status.maps[floorId].deleted)continue;if(core.status.maps[floorId].forceDelete||flags.__forceDelete__[floorId])continue;flags.__removed__=flags.__removed__.filter(function(f){return f!=floorId});core.status.maps[floorId]=core.loadFloor(floorId)}}var inAnyPartition=function inAnyPartition(floorId){var inPartition=false;(core.floorPartitions||[]).forEach(function(floor){var fromIndex=core.floorIds.indexOf(floor[0]);var toIndex=core.floorIds.indexOf(floor[1]);var index=core.floorIds.indexOf(floorId);if(fromIndex<0||index<0)return;if(toIndex<0)toIndex=core.floorIds.length-1;if(index>=fromIndex&&index<=toIndex)inPartition=true});return inPartition};function autoRemoveMaps(floorId){if(main.mode!="play"||!inAnyPartition(floorId))return;(core.floorPartitions||[]).forEach(function(floor){var fromIndex=core.floorIds.indexOf(floor[0]);var toIndex=core.floorIds.indexOf(floor[1]);var index=core.floorIds.indexOf(floorId);if(fromIndex<0||index<0)return;if(toIndex<0)toIndex=core.floorIds.length-1;if(index>=fromIndex&&index<=toIndex){core.plugin.removeMap.resumeMaps(core.floorIds[fromIndex],core.floorIds[toIndex])}else{removeMaps(core.floorIds[fromIndex],core.floorIds[toIndex])}})}core.plugin.removeMap={removeMaps:removeMaps,deleteFlags:deleteFlags,resumeMaps:resumeMaps,autoRemoveMaps:autoRemoveMaps}})();
|
||||
"use strict";(function(){["up","down","left","right"].forEach(function(one){core.material.icons.hero[one].midFoot=2});var heroMoving=function heroMoving(timestamp){if(core.status.heroMoving<=0)return;if(timestamp-core.animateFrame.moveTime>core.values.moveSpeed){core.animateFrame.leftLeg++;core.animateFrame.moveTime=timestamp}core.drawHero(["stop","leftFoot","midFoot","rightFoot"][core.animateFrame.leftLeg%4],4*core.status.heroMoving)};core.registerAnimationFrame("heroMoving",true,heroMoving);core.events._eventMoveHero_moving=function(step,moveSteps){var curr=moveSteps[0];var direction=curr[0],x=core.getHeroLoc("x"),y=core.getHeroLoc("y");var o=direction=="backward"?-1:1;if(direction=="forward"||direction=="backward")direction=core.getHeroLoc("direction");var faceDirection=direction;if(direction=="leftup"||direction=="leftdown")faceDirection="left";if(direction=="rightup"||direction=="rightdown")faceDirection="right";core.setHeroLoc("direction",direction);if(curr[1]<=0){core.setHeroLoc("direction",faceDirection);moveSteps.shift();return true}if(step<=4)core.drawHero("stop",4*o*step);else if(step<=8)core.drawHero("leftFoot",4*o*step);else if(step<=12)core.drawHero("midFoot",4*o*(step-8));else if(step<=16)core.drawHero("rightFoot",4*o*(step-8));if(step==8||step==16){core.setHeroLoc("x",x+o*core.utils.scan2[direction].x,true);core.setHeroLoc("y",y+o*core.utils.scan2[direction].y,true);core.updateFollowers();curr[1]--;if(curr[1]<=0)moveSteps.shift();core.setHeroLoc("direction",faceDirection);return step==16}return false}})();
|
||||
"use strict";(function(){core.control.updateDamage=function(floorId,ctx){floorId=floorId||core.status.floorId;if(!floorId||core.status.gameOver||main.mode!="play")return;var onMap=ctx==null;if(!core.hasItem("book"))return;core.status.damage.posX=core.bigmap.posX;core.status.damage.posY=core.bigmap.posY;if(!onMap){var width=core.floors[floorId].width,height=core.floors[floorId].height;if(width*height>core.bigmap.threshold)return}this._updateDamage_damage(floorId,onMap);this._updateDamage_extraDamage(floorId,onMap);getItemDetail(floorId,onMap);this.drawDamage(ctx)};function getItemDetail(floorId,onMap){var _floorId;if(!core.getFlag("itemDetail"))return;(_floorId=floorId)!==null&&_floorId!==void 0?_floorId:floorId=core.status.thisMap.floorId;var diff={};var before=core.status.hero;var hero=core.clone(core.status.hero);var handler={set:function set(target,key,v){diff[key]=v-(target[key]||0);if(!diff[key])diff[key]=void 0;return true}};core.status.hero=new Proxy(hero,handler);core.status.maps[floorId].blocks.forEach(function(block){if(block.event.cls!=="items"||block.disable)return;var x=block.x,y=block.y;if(onMap&&core.bigmap.v2){if(x<core.bigmap.posX-core.bigmap.extend||x>core.bigmap.posX+core._PX_+core.bigmap.extend||y<core.bigmap.posY-core.bigmap.extend||y>core.bigmap.posY+core._PY_+core.bigmap.extend){return}}diff={};var id=block.event.id;var item=core.material.items[id];if(item.cls==="equips"){var _item$equip$value,_item$equip$percentag;var _diff=core.clone((_item$equip$value=item.equip.value)!==null&&_item$equip$value!==void 0?_item$equip$value:{});var per=(_item$equip$percentag=item.equip.percentage)!==null&&_item$equip$percentag!==void 0?_item$equip$percentag:{};for(var name in per){_diff[name+"per"]=per[name].toString()+"%"}drawItemDetail(_diff,x,y);return}core.setFlag("__statistics__",true);try{eval(item.itemEffect)}catch(error){}drawItemDetail(diff,x,y)});core.status.hero=before;window.hero=before;window.flags=before.flags}function drawItemDetail(diff,x,y){var px=32*x+2,py=32*y+31;var content="";var i=0;for(var name in diff){if(!diff[name])continue;var color="#fff";if(typeof diff[name]==="number")content=core.formatBigNumber(diff[name],true);else content=diff[name];switch(name){case"atk":case"atkper":color="#FF7A7A";break;case"def":case"defper":color="#00E6F1";break;case"mdef":case"mdefper":color="#6EFF83";break;case"hp":color="#A4FF00";break;case"hpmax":case"hpmaxper":color="#F9FF00";break;case"mana":color="#c66";break;}core.status.damage.data.push({text:content,px:px,py:py-10*i,color:color});i++}}})();
|
||||
"use strict";(function(){var ignoreInJump={event:["X20007","X20001","X20006","X20014","X20010","X20007"],bg:["X20037","X20038","X20039","X20045","X20047","X20053","X20054","X20055","X20067","X20068","X20075","X20076"]};var jumpIgnoreFloor=["MT31","snowTown"];function jumpSkill(){if(core.status.floorId.startsWith("tower"))return core.drawTip("\u5F53\u65E0\u6CD5\u4F7F\u7528\u8BE5\u6280\u80FD");if(jumpIgnoreFloor.includes(core.status.floorId)||flags.onChase){return core.drawTip("\u5F53\u524D\u697C\u5C42\u65E0\u6CD5\u4F7F\u7528\u8BE5\u6280\u80FD")}if(!flags.skill2)return;if(!flags["jump_"+core.status.floorId])flags["jump_"+core.status.floorId]=0;if(core.status.floorId=="MT14"&&flags["jump_"+core.status.floorId]==2&&!flags.MT14Jump){if(!(core.status.hero.loc.x===77&&core.status.hero.loc.y===5&&core.status.hero.loc.direction==="right")){return core.drawTip("\u8BE5\u5730\u56FE\u8FD8\u6709\u4E00\u4E2A\u5FC5\u8DF3\u7684\u5730\u65B9\uFF0C\u4F60\u8FD8\u6CA1\u6709\u8DF3")}else flags.MT14Jump=true}if(flags["jump_"+core.status.floorId]>=3)return core.drawTip("\u5F53\u524D\u5730\u56FE\u4F7F\u7528\u6B21\u6570\u5DF2\u7528\u5B8C");var direction=core.status.hero.loc.direction;var loc=core.status.hero.loc;var checkLoc={};switch(direction){case"up":checkLoc.x=loc.x;checkLoc.y=loc.y-1;break;case"right":checkLoc.x=loc.x+1;checkLoc.y=loc.y;break;case"down":checkLoc.x=loc.x;checkLoc.y=loc.y+1;break;case"left":checkLoc.x=loc.x-1;checkLoc.y=loc.y;break;}var cls=core.getBlockCls(checkLoc.x,checkLoc.y);var noPass=core.noPass(checkLoc.x,checkLoc.y);var id=core.getBlockId(checkLoc.x,checkLoc.y)||"";var bgId=core.getBlockByNumber(core.getBgNumber(checkLoc.x,checkLoc.y)).event.id||"";if(!noPass||cls=="items"||id.startsWith("X")&&!ignoreInJump.event.includes(id)||bgId.startsWith("X")&&!ignoreInJump.bg.includes(bgId))return core.drawTip("\u5F53\u524D\u65E0\u6CD5\u4F7F\u7528\u6280\u80FD");if(noPass&&!(cls=="enemys"||cls=="enemy48")){var toLoc=checkNoPass(direction,checkLoc.x,checkLoc.y,true);if(!toLoc)return;core.autosave();if(flags.chapter<=1)core.status.hero.hp-=200*flags.hard;core.updateStatusBar();flags["jump_"+core.status.floorId]++;if(core.status.hero.hp<=0){core.status.hero.hp=0;core.updateStatusBar();core.events.lose("\u4F60\u8DF3\u6B7B\u4E86")}core.playSound("015-Jump01.ogg");core.insertAction([{type:"jumpHero",loc:[toLoc.x,toLoc.y],time:500}])}if(cls=="enemys"||cls=="enemy48"){var firstNoPass=checkNoPass(direction,checkLoc.x,checkLoc.y,false);if(!firstNoPass)return;core.autosave();if(flags.chapter<=1)core.status.hero.hp-=200*flags.hard;core.updateStatusBar();flags["jump_"+core.status.floorId]++;if(core.status.hero.hp<=0){core.status.hero.hp=0;core.updateStatusBar();core.events.lose("\u4F60\u8DF3\u6B7B\u4E86")}core.playSound("015-Jump01.ogg");core.insertAction([{type:"jump",from:[checkLoc.x,checkLoc.y],to:[firstNoPass.x,firstNoPass.y],time:500,keep:true}])}function checkNoPass(direction,x,y,startNo){if(!startNo)startNo=false;switch(direction){case"up":y--;break;case"right":x++;break;case"down":y++;break;case"left":x--;break;}if(x>core.status.thisMap.width-1||y>core.status.thisMap.height-1||x<0||y<0)return core.drawTip("\u5F53\u524D\u65E0\u6CD5\u4F7F\u7528\u6280\u80FD");var id=core.getBlockId(x,y)||"";if(core.getBgNumber(x,y))var bgId=core.getBlockByNumber(core.getBgNumber(x,y)).event.id||"";else var bgId="";if(core.noPass(x,y)||core.getBlockCls(x,y)=="items"||id.startsWith("X")&&!ignoreInJump.event.includes(id)||bgId.startsWith("X")&&!ignoreInJump.bg.includes(bgId)||core.getBlockCls(x,y)=="animates")return checkNoPass(direction,x,y,true);if(!startNo)return checkNoPass(direction,x,y,false);return{x:x,y:y}}}core.plugin.skillEffects={jumpSkill:jumpSkill}})();
|
||||
"use strict";(function(){var stage=1,hp=10000,seconds=0,boomLocs=[],heroHp;function initTowerBoss(){stage=1;hp=10000;seconds=0;heroHp=core.status.hero.hp;dynamicChangeHp(0,10000,10000);autoFixRouteBoss(true);core.insertAction([{type:"sleep",time:1000,noSkip:true}]);setTimeout(bossCore,1000)}function autoFixRouteBoss(isStart){var route=core.status.route;if(isStart){flags.startFix=route.length-1;return}route.splice(flags.startFix);route.push("choices:0");delete flags.startFix}function healthBar(now,total){var nowLength=now/total*476;var color=[255*2-now/total*2*255,now/total*2*255,0,1];if(!core.dymCanvas.healthBar)core.createCanvas("healthBar",0,0,480,16,140);else core.clearMap("healthBar");core.fillRect("healthBar",0,0,480,16,"#bbbbbb");var style=document.getElementById("healthBar").getContext("2d");style.shadowColor="rgba(0, 0, 0, 0.8)";style.shadowBlur=5;style.shadowOffsetX=10;style.shadowOffsetY=5;style.filter="blur(1px)";core.fillRect("healthBar",2,2,nowLength,12,color);style.shadowColor="rgba(0, 0, 0, 0.5)";style.shadowOffsetX=0;style.shadowOffsetY=0;core.strokeRect("healthBar",1,1,478,14,"#ffffff",2);style.shadowColor="rgba(0, 0, 0, 1)";style.shadowBlur=3;style.shadowOffsetX=2;style.shadowOffsetY=1;style.filter="none";core.fillText("healthBar",now+"/"+total,5,13.5,"#ffffff","16px normal")}function dynamicChangeHp(from,to,total){var frame=0,speed=(to-from)/50,now=from;var interval=window.setInterval(function(){frame++;if(frame==50){clearInterval(interval);healthBar(to,total)}now+=speed;healthBar(now,total)},20)}function skipWord(words,x,y,time){x=x||0;y=y||16;time=time||3000;if(!core.dymCanvas.words)core.createCanvas("words",x,y,480,24,135);else core.clearMap("words");if(flags.wordsTimeOut)clearTimeout(flags.wordsTimeOut);dynamicCurtain(y,y+24,time/3);var style=document.getElementById("words").getContext("2d");style.shadowColor="rgba(0, 0, 0, 1)";style.shadowBlur=3;style.shadowOffsetX=2;style.shadowOffsetY=1;skip1(0);function skip1(now){if(parseInt(now)>=words.length){flags.wordsTimeOut=setTimeout(function(){core.deleteCanvas("words");core.deleteCanvas("wordsBg")},time);return}var frame=0,blur=2,nx=4+now*24;var skip2=window.setInterval(function(){blur-=0.4;frame++;core.clearMap("words",nx,0,24,24);style.filter="blur("+blur+"px)";core.fillText("words",words[now],nx,20,"#ffffff","22px normal");if(frame==5){clearInterval(skip2);skip1(now+1)}},20)}}function dynamicCurtain(from,to,time,width){width=width||480;if(!core.dymCanvas.wordsBg)core.createCanvas("wordsBg",0,from,width,24,130);else core.clearMap("wordsBg");time/=1000;var ny=from,frame=0,a=2*(to-from)/Math.pow(time*50,2),speed=a*time*50;var style=document.getElementById("wordsBg").getContext("2d");style.shadowColor="rgba(0, 0, 0, 0.8)";var wordsInterval=window.setInterval(function(){frame++;speed-=a;ny+=speed;core.clearMap("wordsBg");style.shadowBlur=8;style.shadowOffsetY=2;core.fillRect("wordsBg",0,0,width,ny-from,[180,180,180,0.7]);style.shadowBlur=3;style.shadowOffsetY=0;core.strokeRect("wordsBg",1,1,width-2,ny-from-2,[255,255,255,0.7],2);if(frame>=time*50){clearInterval(wordsInterval);core.clearMap("wordsBg");style.shadowBlur=8;style.shadowOffsetY=2;core.fillRect("wordsBg",0,0,width,to-from,[180,180,180,0.7]);style.shadowBlur=3;style.shadowOffsetY=0;core.strokeRect("wordsBg",1,1,width-2,ny-from-2,[255,255,255,0.7],2)}},20)}function attackBoss(){if(flags.canAttack)return;if(Math.random()<0.8)return;if(hp>3500){var nx=Math.floor(Math.random()*13+1),ny=Math.floor(Math.random()*13+1)}else if(hp>2000){var nx=Math.floor(Math.random()*11+2),ny=Math.floor(Math.random()*11+2)}else if(hp>1000){var nx=Math.floor(Math.random()*9+3),ny=Math.floor(Math.random()*9+3)}else{var nx=Math.floor(Math.random()*7+4),ny=Math.floor(Math.random()*7+4)}flags.canAttack=true;if(!core.dymCanvas.attackBoss)core.createCanvas("attackBoss",0,0,480,480,35);else core.clearMap("attackBoss");var style=document.getElementById("attackBoss").getContext("2d");var frame1=0,blur=3,scale=2,speed=0.04,a=0.0008;var atkAnimate=window.setInterval(function(){core.clearMap("attackBoss");frame1++;speed-=a;scale-=speed;blur-=0.06;style.filter="blur("+blur+"px)";core.strokeCircle("attackBoss",nx*32+16,ny*32+16,16*scale,[255,150,150,0.7],4);core.fillCircle("attackBoss",nx*32+16,ny*32+16,3*scale,[255,150,150,0.7]);if(frame1==50){clearInterval(atkAnimate);core.clearMap("attactkBoss");style.filter="none";core.strokeCircle("attackBoss",nx*32+16,ny*32+16,16,[255,150,150,0.7],4);core.fillCircle("attackBoss",nx*32+16,ny*32+16,3,[255,150,150,0.7])}},20);var frame2=0;var atkBoss=window.setInterval(function(){frame2++;var x=core.status.hero.loc.x,y=core.status.hero.loc.y;if(frame2>100){setTimeout(function(){delete flags.canAttack},4000);clearInterval(atkBoss);core.deleteCanvas("attackBoss");return}if(nx==x&&ny==y){setTimeout(function(){delete flags.canAttack},4000);dynamicChangeHp(hp,hp-500,10000);hp-=500;clearInterval(atkBoss);core.deleteCanvas("attackBoss");if(hp>3500)core.drawAnimate("hand",7,1);else if(hp>2Line truncated
|
||||
"use strict";function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"]&&(_r=_i["return"](),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(function(){control.prototype.checkBlock=function(forceMockery){var x=core.getHeroLoc("x"),y=core.getHeroLoc("y"),loc=x+","+y;var damage=core.status.checkBlock.damage[loc];if(damage){if(!main.replayChecking)core.addPop((x-core.bigmap.offsetX/32)*32+12,(y-core.bigmap.offsetY/32)*32+20,-damage.toString());core.status.hero.hp-=damage;var text=Object.keys(core.status.checkBlock.type[loc]||{}).join("\uFF0C")||"\u4F24\u5BB3";core.drawTip("\u53D7\u5230"+text+damage+"\u70B9");core.drawHeroAnimate("zone");this._checkBlock_disableQuickShop();core.status.hero.statistics.extraDamage+=damage;if(core.status.hero.hp<=0){core.status.hero.hp=0;core.updateStatusBar();core.events.lose();return}else{core.updateStatusBar()}}this._checkBlock_repulse(core.status.checkBlock.repulse[loc]);checkMockery(loc,forceMockery)};control.prototype.moveHero=function(direction,callback){if(core.status.heroMoving!=0)return;if(core.isset(direction))core.setHeroLoc("direction",direction);var nx=core.nextX();var ny=core.nextY();if(core.status.checkBlock.mockery["".concat(nx,",").concat(ny)]){core.autosave()}if(callback)return this.moveAction(callback);this._moveHero_moving()};function checkMockery(loc,force){if(core.status.lockControl&&!force)return;var mockery=core.status.checkBlock.mockery[loc];if(mockery){mockery.sort(function(a,b){return a[0]===b[0]?a[1]-b[1]:a[0]-b[0]});var action=[];var _mockery$=_slicedToArray(mockery[0],2),tx=_mockery$[0],ty=_mockery$[1];var _core$status$hero$loc=core.status.hero.loc,x=_core$status$hero$loc.x,y=_core$status$hero$loc.y;var dir=x>tx?"left":x<tx?"right":y>ty?"up":"down";var _core$utils$scan$dir=core.utils.scan[dir],dx=_core$utils$scan$dir.x,dy=_core$utils$scan$dir.y;action.push({type:"changePos",direction:dir});var blocks=core.getMapBlocksObj();while(1){x+=dx;y+=dy;var block=blocks["".concat(x,",").concat(y)];if(block){block.event.cls==="";if(["animates","autotile","tileset","npcs","npc48"].includes(block.event.cls)){action.push({type:"hide",loc:[[x,y]],remove:true,time:0},{type:"function","function":"function() { core.removeGlobalAnimate(".concat(x,", ").concat(y,") }")},{type:"animate",name:"hand",loc:[x,y],async:true})}if(block.event.cls.startsWith("enemy")){action.push({type:"moveAction"})}}action.push({type:"moveAction"});if(x===tx&&y===ty)break}action.push({type:"function","function":"function() { core.checkBlock(true); }"});action.push({type:"stopAsync"});core.insertAction(action)}}})();
|
||||
"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap;var cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj}if(obj===null||_typeof(obj)!=="object"&&typeof obj!=="function"){return{"default":obj}}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj)}return newObj}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"]&&(_r=_i["return"](),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _regeneratorRuntime(){"use strict";_regeneratorRuntime=function _regeneratorRuntime(){return exports};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key]}try{define({},"")}catch(err){define=function define(obj,key,value){return obj[key]=value}}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg)})})}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",err,resolve,reject)}):ProLine truncated
|
||||
"use strict";function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"]&&(_r=_i["return"](),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(function(){var _core$plugin$study=core.plugin.study,studySkill=_core$plugin$study.studySkill,canStudySkill=_core$plugin$study.canStudySkill;var replayableSettings=["autoSkill"];core.registerReplayAction("settings",function(name){if(!name.startsWith("set:"))return false;var _name$split=name.split(":"),_name$split2=_slicedToArray(_name$split,3),setting=_name$split2[1],value=_name$split2[2];var v=eval(value);if(typeof v!=="boolean")return false;if(!replayableSettings.includes(setting))return false;flags[setting]=v;core.replay();return true});core.registerReplayAction("upgradeSkill",function(name){if(!name.startsWith("skill:"))return false;var skill=parseInt(name.slice(6));core.plugin.skillTree.upgradeSkill(skill);core.replay();return true});core.registerReplayAction("study",function(name){if(!name.startsWith("study:"))return false;var _name$slice$split$map=name.slice(6).split(",").map(function(v){return parseInt(v)}),_name$slice$split$map2=_slicedToArray(_name$slice$split$map,3),num=_name$slice$split$map2[0],x=_name$slice$split$map2[1],y=_name$slice$split$map2[2];if(!canStudySkill(num))return false;var id=core.getBlockId(x,y);var enemy=core.getEnemyInfo(id,void 0,x,y);if(!enemy.special.includes(num))return false;studySkill(enemy,num);core.replay();return true});var shopOpened=false;var openedShopId="";core.registerReplayAction("openShop",function(name){if(!name.startsWith("openShop:"))return false;openedShopId=name.slice(9);shopOpened=true;core.replay();return true});core.registerReplayAction("buy",function(name){var _flags,_flags$itemShop,_flags$itemShop2,_openedShopId,_flags$itemShop2$_ope,_flags$itemShop$opene,_flags$itemShop$opene2;if(!name.startsWith("buy:")&&!name.startsWith("sell:"))return false;if(!shopOpened)return false;if(!openedShopId)return false;var _name$split$map=name.split(":").map(function(v){return /^\d+$/.test(v)?parseInt(v):v}),_name$split$map2=_slicedToArray(_name$split$map,3),type=_name$split$map2[0],id=_name$split$map2[1],num=_name$split$map2[2];var shop=core.status.shops[id];var item=shop.choices.find(function(v){return v.id===id});if(!item)return false;(_flags$itemShop=(_flags=flags).itemShop)!==null&&_flags$itemShop!==void 0?_flags$itemShop:_flags.itemShop={};(_flags$itemShop2$_ope=(_flags$itemShop2=flags.itemShop)[_openedShopId=openedShopId])!==null&&_flags$itemShop2$_ope!==void 0?_flags$itemShop2$_ope:_flags$itemShop2[_openedShopId]={};(_flags$itemShop$opene2=(_flags$itemShop$opene=flags.itemShop[openedShopId])[id])!==null&&_flags$itemShop$opene2!==void 0?_flags$itemShop$opene2:_flags$itemShop$opene[id]=0;if(num>item.number-flags.itemShop[openedShopId][id]){return false}var cost=0;if(type==="buy"){cost=item.money*num}else{cost=-item.sell*num}if(cost>core.status.hero.money)return false;core.status.hero.money-=cost;flags.itemShop[openedShopId][id]+=type==="buy"?num:-num;core.replay();return true});core.registerReplayAction("closeShop",function(name){if(name!=="closeShop")return false;if(!shopOpened)return false;shopOpened=false;openedShopId="";core.replay();return true})})();
|
||||
"use strict";function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]}},e:function e(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();normalCompletion=step.done;return step},e:function e(_e3){didErr=true;err=_e3},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]()}finally{if(didErr)throw err}}}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"]&&(_r=_i["return"](),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(function(){var levels=[];var skills={chapter1:[{index:0,title:"\u529B\u91CF",desc:["\u529B\u91CF\u5C31\u662F\u6839\u672C\uFF01\u53EF\u4EE5\u901A\u8FC7\u667A\u6167\u589E\u52A0\u529B\u91CF\uFF0C\u6BCF\u7EA7\u589E\u52A02\u70B9\u653B\u51FB\u3002"],consume:"10 * level + 10",front:[],loc:[1,2],max:10,effect:["\u653B\u51FB + ${level * 2}"]},{index:1,title:"\u81F4\u547D\u4E00\u51FB",desc:["\u7206\u53D1\u51FA\u5168\u90E8\u529B\u91CF\u653B\u51FB\u654C\u4EBA\uFF0C\u6BCF\u7EA7\u589E\u52A05\u70B9\u989D\u5916\u653B\u51FB\u3002"],consume:"30 * level + 30",front:[[0,5]],loc:[2,1],max:10,effect:["\u989D\u5916\u653B\u51FB + ${level * 5}"]},{index:2,title:"\u65AD\u706D\u4E4B\u5203",desc:["<span style=\"color: gold\">\u4E3B\u52A8\u6280\u80FD\uFF0C\u5FEB\u6377\u952E1</span>\uFF0C","\u5F00\u542F\u540E\u4F1A\u5728\u6218\u6597\u65F6\u4F1A\u989D\u5916\u589E\u52A0\u4E00\u5B9A\u91CF\u7684\u653B\u51FB\uFF0C\u4F46\u540C\u65F6\u51CF\u5C11\u4E00\u5B9A\u91CF\u7684\u9632\u5FA1\u3002"],consume:"200 * level + 400",front:[[1,5]],loc:[4,1],max:5,effect:["\u589E\u52A0${level * 10}%\u653B\u51FB\uFF0C\u51CF\u5C11${level * 10}%\u9632\u5FA1"]},{index:3,title:"\u575A\u97E7",desc:["\u7531\u667A\u6167\u8F6C\u5316\u51FA\u575A\u97E7\uFF01\u6BCF\u7EA7\u589E\u52A02\u70B9\u9632\u5FA1"],consume:"10 * level + 10",front:[],loc:[1,4],max:10,effect:["\u9632\u5FA1 + ${level * 2}"]},{index:4,title:"\u56DE\u6625",desc:["\u8BA9\u667A\u6167\u5316\u4E3A\u6CBB\u6108\u4E4B\u6CC9\u6C34\uFF01\u6BCF\u7EA7\u589E\u52A01\u70B9\u751F\u547D\u56DE\u590D"],consume:"20 * level + 20",front:[[3,5]],loc:[2,5],max:25,effect:["\u751F\u547D\u56DE\u590D + ${level}"]},{index:5,title:"\u6CBB\u6108\u4E4B\u6CC9",desc:["\u8BA9\u751F\u547D\u53D8\u5F97\u66F4\u591A\u4E00\u4E9B\u5427\uFF01\u6BCF\u540350\u74F6\u8840\u74F6\u5C31\u589E\u52A0\u5F53\u524D\u751F\u547D\u56DE\u590D10%\u7684\u751F\u547D\u56DE\u590D"],consume:"1500",front:[[4,25]],loc:[4,5],max:1,effect:["50\u74F6\u884010%\u751F\u547D\u56DE\u590D"]},{index:6,title:"\u575A\u56FA\u4E4B\u76FE",desc:["\u8BA9\u62A4\u7532\u66F4\u52A0\u575A\u786C\u4E00\u4E9B\u5427\uFF01\u6BCF\u7EA7\u589E\u52A010\u70B9\u9632\u5FA1"],consume:"50 + level * 50",front:[[3,5]],loc:[2,3],max:10,effect:["\u9632\u5FA1 + ${level * 10}"]},{index:7,title:"\u65E0\u4E0A\u4E4B\u76FE",desc:["<span style=\"color: #dd4\">\u7B2C\u4E00\u7AE0\u7EC8\u6781\u6280\u80FD</span>\uFF0C\u6218\u6597\u65F6\u667A\u6167\u4F1A\u5145\u5F53\u7B49\u91CF\u62A4\u76FE"],consume:"2500",front:[[6,10],[5,1],[2,2]],loc:[5,3],max:1,effect:["\u6218\u6597\u65F6\u667A\u6167\u4F1A\u5145\u5F53\u62A4\u76FE"]}],chapter2:[{index:8,title:"\u950B\u5229",desc:["\u8BA9\u5251\u53D8\u5F97\u66F4\u52A0\u950B\u5229\uFF01\u6BCF\u7EA7\u4F7F\u653B\u51FB\u589E\u52A01%\uFF08buff\u5F0F\u589E\u52A0\uFLine truncated
|
||||
"use strict";function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]}},e:function e(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();normalCompletion=step.done;return step},e:function e(_e3){didErr=true;err=_e3},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]()}finally{if(didErr)throw err}}}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"]&&(_r=_i["return"](),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(function(){function drawHalo(ctx,onMap){if(main.replayChecking)return;if(!core.getLocalStorage("showHalo",true))return;var halo=core.status.checkBlock.halo;ctx.save();for(var _i=0,_Object$entries=Object.entries(halo);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),loc=_Object$entries$_i[0],range=_Object$entries$_i[1];var _loc$split$map=loc.split(",").map(function(v){return parseInt(v)}),_loc$split$map2=_slicedToArray(_loc$split$map,2),x=_loc$split$map2[0],y=_loc$split$map2[1];var _iterator=_createForOfIteratorHelper(range),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var r=_step.value;var _r$split=r.split(":"),_r$split2=_slicedToArray(_r$split,4),type=_r$split2[0],value=_r$split2[1],color=_r$split2[2],border=_r$split2[3];if(type==="square"){var n=parseInt(value);var _r2=Math.floor(n/2);var left=x-_r2,right=x+_r2,top=y-_r2,bottom=y+_r2;if(onMap&&core.bigmap.v2){left-=core.bigmap.posX;top-=core.bigmap.posY;right-=core.bigmap.posX;bottom-=core.bigmap.posY;if(right<-1||left>core._PX_/32+1||top<-1||bottom>core._PY_/32+1){continue}}ctx.fillStyle=color;ctx.strokeStyle=border!==null&&border!==void 0?border:color;ctx.lineWidth=1;ctx.globalAlpha=0.1;ctx.fillRect(left*32,top*32,n*32,n*32);ctx.globalAlpha=0.6;ctx.strokeRect(left*32,top*32,n*32,n*32)}}}catch(err){_iterator.e(err)}finally{_iterator.f()}}ctx.restore()}core.plugin.halo={drawHalo:drawHalo}})();
|
||||
Reference in new issue
Block a user