mirror of
				https://github.com/unanmed/HumanBreak.git
				synced 2025-10-31 04:02:59 +08:00 
			
		
		
		
	feat: 杀戮光环说明
This commit is contained in:
		
							parent
							
								
									9c1b79e6b4
								
							
						
					
					
						commit
						12f85a75df
					
				| @ -191,9 +191,18 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = { | |||||||
| 					"_leaf": true, | 					"_leaf": true, | ||||||
| 					"_type": "popCheckboxSet", | 					"_type": "popCheckboxSet", | ||||||
| 					"_checkboxSet": function () { | 					"_checkboxSet": function () { | ||||||
|  | 						var array = Mota.require('var', 'enemySpecials'); | ||||||
|  | 						var b = [], | ||||||
|  | 							c = []; | ||||||
|  | 						for (var index = 0; index < array.length; index++) { | ||||||
|  | 							b.push(index) | ||||||
|  | 							var name = array[index].name; | ||||||
|  | 							if (name instanceof Function) name = name({}); | ||||||
|  | 							c.push(name + "(" + index + ")") | ||||||
|  | 						} | ||||||
| 						return { | 						return { | ||||||
| 							"prefix": [], | 							"prefix": c, | ||||||
| 							"key": [] | 							"key": b | ||||||
| 						} | 						} | ||||||
| 					}, | 					}, | ||||||
| 					"_data": "特殊属性" | 					"_data": "特殊属性" | ||||||
|  | |||||||
| @ -145,7 +145,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 = | |||||||
| 	"E593": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | 	"E593": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | ||||||
| 	"E594": {"name":"苍蓝骑士","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | 	"E594": {"name":"苍蓝骑士","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | ||||||
| 	"E595": {"name":"寒冰兽人","hp":12500,"atk":1800,"def":800,"money":2,"exp":100,"point":0,"special":[7],"hungry":25}, | 	"E595": {"name":"寒冰兽人","hp":12500,"atk":1800,"def":800,"money":2,"exp":100,"point":0,"special":[7],"hungry":25}, | ||||||
| 	"E596": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | 	"E596": {"name":"苍蓝兽人","hp":10000,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | ||||||
| 	"E597": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | 	"E597": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | ||||||
| 	"E598": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | 	"E598": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | ||||||
| 	"E599": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | 	"E599": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, | ||||||
|  | |||||||
| @ -16,11 +16,7 @@ main.floors.MT51= | |||||||
|     "firstArrive": [], |     "firstArrive": [], | ||||||
|     "eachArrive": [], |     "eachArrive": [], | ||||||
|     "parallelDo": "", |     "parallelDo": "", | ||||||
|     "events": { |     "events": {}, | ||||||
|         "12,6": [ |  | ||||||
|             "当光辉照耀之时,虚像便会消失。" |  | ||||||
|         ] |  | ||||||
|     }, |  | ||||||
|     "changeFloor": { |     "changeFloor": { | ||||||
|         "14,7": { |         "14,7": { | ||||||
|             "floorId": "MT50", |             "floorId": "MT50", | ||||||
| @ -44,7 +40,7 @@ main.floors.MT51= | |||||||
|     [648,648,648,648,648,  0,648,648,648,  0,648,648,648,  0,648], |     [648,648,648,648,648,  0,648,648,648,  0,648,648,648,  0,648], | ||||||
|     [648,  0,  0,  0,648,  0,  0,  0,  0,  0,648,  0,  0,  0,648], |     [648,  0,  0,  0,648,  0,  0,  0,  0,  0,648,  0,  0,  0,648], | ||||||
|     [648,  0,648,  0,648,  0,648,648,648,  0,648,  0,  0,  0,648], |     [648,  0,648,  0,648,  0,648,648,648,  0,648,  0,  0,  0,648], | ||||||
|     [648,  0,648,  0,  0,  0,  0,  0,  0,  0,648,648,129,648,648], |     [648,  0,648,  0,  0,  0,  0,  0,  0,  0,648,648,648,648,648], | ||||||
|     [648,  0,648,  0,648,648,  0,648,  0,648,648,  0,  0,  0, 94], |     [648,  0,648,  0,648,648,  0,648,  0,648,648,  0,  0,  0, 94], | ||||||
|     [648,  0,  0,  0,  0,648,  0,648,  0,  0,  0,  0,  0,  0,648], |     [648,  0,  0,  0,  0,648,  0,648,  0,  0,  0,  0,  0,  0,648], | ||||||
|     [648,648,648,648,648,648,  0,648,  0,648,648,648,648,648,648], |     [648,648,648,648,648,648,  0,648,  0,648,648,648,648,648,648], | ||||||
|  | |||||||
| @ -7,6 +7,10 @@ export interface SpecialDeclaration { | |||||||
|     color: string; |     color: string; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | const fromFunc = (func: string | ((enemy: Enemy) => string), enemy: Enemy) => { | ||||||
|  |     return typeof func === 'string' ? func : func(enemy); | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| export const specials: SpecialDeclaration[] = [ | export const specials: SpecialDeclaration[] = [ | ||||||
|     { |     { | ||||||
|         code: 0, |         code: 0, | ||||||
| @ -46,7 +50,7 @@ export const specials: SpecialDeclaration[] = [ | |||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|         code: 6, |         code: 6, | ||||||
|         name: enemy => `${enemy.n}连击`, |         name: enemy => `${enemy.n ?? 4}连击`, | ||||||
|         desc: enemy => `怪物每回合攻击${enemy.n}次`, |         desc: enemy => `怪物每回合攻击${enemy.n}次`, | ||||||
|         color: '#fe7' |         color: '#fe7' | ||||||
|     }, |     }, | ||||||
| @ -200,5 +204,24 @@ export const specials: SpecialDeclaration[] = [ | |||||||
|         desc: enemy => |         desc: enemy => | ||||||
|             `怪物使用苍蓝之灵的力量,使自身受到的伤害减少${enemy.paleShield}%`, |             `怪物使用苍蓝之灵的力量,使自身受到的伤害减少${enemy.paleShield}%`, | ||||||
|         color: '#ff6f0a' |         color: '#ff6f0a' | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         code: 29, | ||||||
|  |         name: '杀戮光环', | ||||||
|  |         desc: enemy => { | ||||||
|  |             const special = enemy.special; | ||||||
|  |             let str = '<div style="margin-left: 10px">'; | ||||||
|  | 
 | ||||||
|  |             special.forEach(v => { | ||||||
|  |                 const { name, desc, color } = specials[v]; | ||||||
|  |                 str += `<span style="color:${color}">${fromFunc( | ||||||
|  |                     name, | ||||||
|  |                     enemy | ||||||
|  |                 )}</span><span>${fromFunc(desc, enemy)}</span>`;
 | ||||||
|  |             }); | ||||||
|  | 
 | ||||||
|  |             return str; | ||||||
|  |         }, | ||||||
|  |         color: '#F721F7' | ||||||
|     } |     } | ||||||
| ]; | ]; | ||||||
|  | |||||||
| @ -13,7 +13,8 @@ export function setGameCanvasFilter(filter: string) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| const filterMap: [FloorIds[], string][] = [ | const filterMap: [FloorIds[], string][] = [ | ||||||
|     [['MT50'], 'brightness(80%)contrast(120%)'] // 童心佬的滤镜(
 |     [['MT50'], 'brightness(80%)contrast(120%)'], // 童心佬的滤镜(
 | ||||||
|  |     [['MT51'], 'brightness(90%)contrast(120%)'] // 童心佬的滤镜(
 | ||||||
| ]; | ]; | ||||||
| 
 | 
 | ||||||
| export function getCanvasFilterByFloorId( | export function getCanvasFilterByFloorId( | ||||||
|  | |||||||
| @ -84,10 +84,22 @@ const shadowInfo: Partial<Record<FloorIds, Light[]>> = { | |||||||
|             color: pColor('#e953'), |             color: pColor('#e953'), | ||||||
|             noShelter: true |             noShelter: true | ||||||
|         } |         } | ||||||
|  |     ], | ||||||
|  |     MT51: [ | ||||||
|  |         { | ||||||
|  |             id: 'mt51_hero', | ||||||
|  |             x: 0, | ||||||
|  |             y: 0, | ||||||
|  |             decay: 50, | ||||||
|  |             r: 250, | ||||||
|  |             color: 'transparent', | ||||||
|  |             followHero: true | ||||||
|  |         } | ||||||
|     ] |     ] | ||||||
| }; | }; | ||||||
| const backgroundInfo: Partial<Record<FloorIds, Color>> = { | const backgroundInfo: Partial<Record<FloorIds, Color>> = { | ||||||
|     MT50: pColor('#0006') |     MT50: pColor('#0006'), | ||||||
|  |     MT51: pColor('#0004') | ||||||
| }; | }; | ||||||
| const blurInfo: Partial<Record<FloorIds, number>> = {}; | const blurInfo: Partial<Record<FloorIds, number>> = {}; | ||||||
| const immersionInfo: Partial<Record<FloorIds, number>> = {}; | const immersionInfo: Partial<Record<FloorIds, number>> = {}; | ||||||
|  | |||||||
| @ -28,7 +28,7 @@ export const detailInfo: BookDetailInfo = {}; | |||||||
| export function getSpecialHint(enemy: ToShowEnemy) { | export function getSpecialHint(enemy: ToShowEnemy) { | ||||||
|     return ( |     return ( | ||||||
|         <div> |         <div> | ||||||
|             {enemy.showSpecial.map((v, i) => { |             {enemy.special.map((v, i) => { | ||||||
|                 return ( |                 return ( | ||||||
|                     <div class="special"> |                     <div class="special"> | ||||||
|                         <span style={{ color: v[2] }}> |                         <span style={{ color: v[2] }}> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user