Merge branch 'map' of https://gitea.mota.press/Dove/Eustia into map
This commit is contained in:
		
						commit
						18e4f13a54
					
				| @ -128,6 +128,12 @@ var plugins_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = { | |||||||
| 				"_type": "textarea", | 				"_type": "textarea", | ||||||
| 				"_range": "typeof(thiseval)=='string' || thiseval==null", | 				"_range": "typeof(thiseval)=='string' || thiseval==null", | ||||||
| 				"_data": "背景音乐拼接" | 				"_data": "背景音乐拼接" | ||||||
|  | 			}, | ||||||
|  | 			"scrollingText": { | ||||||
|  | 				"_leaf": true, | ||||||
|  | 				"_type": "textarea", | ||||||
|  | 				"_range": "typeof(thiseval)=='string' || thiseval==null", | ||||||
|  | 				"_data": "接收&发送在线留言" | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 		if (obj[key]) return obj[key]; | 		if (obj[key]) return obj[key]; | ||||||
|  | |||||||
| @ -1521,7 +1521,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = | |||||||
| 	}, | 	}, | ||||||
| 	"firstData": { | 	"firstData": { | ||||||
| 		"title": "秽翼的尤斯蒂娅", | 		"title": "秽翼的尤斯蒂娅", | ||||||
| 		"name": "Eustia", | 		"name": "Eustia_text", | ||||||
| 		"version": "鸽子窝造塔小队", | 		"version": "鸽子窝造塔小队", | ||||||
| 		"floorId": "jiaocheng01", | 		"floorId": "jiaocheng01", | ||||||
| 		"hero": { | 		"hero": { | ||||||
| @ -1936,7 +1936,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = | |||||||
| 			}, | 			}, | ||||||
| 			{ | 			{ | ||||||
| 				"type": "function", | 				"type": "function", | ||||||
| 				"function": "function(){\ncore.getItem('book', 1);\ncore.getItem('fly', 1);\n}" | 				"function": "function(){\ncore.getItem('book', 1);\ncore.getItem('fly', 1);\ncore.getItem('postman', 1);\ncore.getItem('I369', 1);\n}" | ||||||
| 			}, | 			}, | ||||||
| 			{ | 			{ | ||||||
| 				"type": "insert", | 				"type": "insert", | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| main.floors.jiaocheng01= | main.floors.jiaocheng01= | ||||||
| { | { | ||||||
|     "floorId": "jiaocheng01", |     "floorId": "jiaocheng01", | ||||||
|     "title": "广场", |     "title": "教程1", | ||||||
|     "name": "1", |     "name": "1", | ||||||
|     "width": 13, |     "width": 13, | ||||||
|     "height": 13, |     "height": 13, | ||||||
| @ -142,7 +142,7 @@ main.floors.jiaocheng01= | |||||||
|     [129,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,129], |     [129,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,129], | ||||||
|     [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1] |     [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1] | ||||||
| ], | ], | ||||||
|     "areas": "牢狱", |     "areas": "教程", | ||||||
|     "bgmap": [ |     "bgmap": [ | ||||||
| 
 | 
 | ||||||
| ], | ], | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| main.floors.jiaocheng02= | main.floors.jiaocheng02= | ||||||
| { | { | ||||||
|     "floorId": "jiaocheng02", |     "floorId": "jiaocheng02", | ||||||
|     "title": "广场", |     "title": "教程2", | ||||||
|     "name": "1", |     "name": "1", | ||||||
|     "width": 13, |     "width": 13, | ||||||
|     "height": 13, |     "height": 13, | ||||||
| @ -118,7 +118,7 @@ main.floors.jiaocheng02= | |||||||
|     [  0, 81,  0,  1,217,  1,  0,  1,  1, 81,  1,  1, 21], |     [  0, 81,  0,  1,217,  1,  0,  1,  1, 81,  1,  1, 21], | ||||||
|     [216,  0,  0, 21,  0,  1, 93,  1, 27,  0, 27,  1, 21] |     [216,  0,  0, 21,  0,  1, 93,  1, 27,  0, 27,  1, 21] | ||||||
| ], | ], | ||||||
|     "areas": "牢狱", |     "areas": "教程", | ||||||
|     "bgmap": [ |     "bgmap": [ | ||||||
| 
 | 
 | ||||||
| ], | ], | ||||||
|  | |||||||
| @ -192,6 +192,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = | |||||||
| 			core.plugin.bfs(); | 			core.plugin.bfs(); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  | 	if (!core.isReplaying()) core.plugin.drawCommentSign() | ||||||
| }, | }, | ||||||
|         "flyTo": function (toId, callback) { |         "flyTo": function (toId, callback) { | ||||||
| 	// 楼层传送器的使用,从当前楼层飞往toId
 | 	// 楼层传送器的使用,从当前楼层飞往toId
 | ||||||
| @ -2022,6 +2023,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = | |||||||
| 		nowy = core.getHeroLoc("y"); | 		nowy = core.getHeroLoc("y"); | ||||||
| 	var block = core.getBlock(nowx, nowy); | 	var block = core.getBlock(nowx, nowy); | ||||||
| 	var hasTrigger = false; | 	var hasTrigger = false; | ||||||
|  | 	core.showComment(nowx, nowy) | ||||||
| 	if ( | 	if ( | ||||||
| 		block != null && | 		block != null && | ||||||
| 		block.event.trigger == "getItem" && | 		block.event.trigger == "getItem" && | ||||||
| @ -2061,7 +2063,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = | |||||||
| 			core.status.hero.statistics.poisonDamage += damage; | 			core.status.hero.statistics.poisonDamage += damage; | ||||||
| 			core.status.hero.hp -= damage; | 			core.status.hero.hp -= damage; | ||||||
| 		} | 		} | ||||||
| 
 | 		core.showComment(x, y) | ||||||
| 		core.clearMap("hero"); | 		core.clearMap("hero"); | ||||||
| 		if ( | 		if ( | ||||||
| 			core.bigmap.width * 32 === core.bigmap.height * 32 && | 			core.bigmap.width * 32 === core.bigmap.height * 32 && | ||||||
|  | |||||||
| @ -326,7 +326,8 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 = | |||||||
| 		"I373": 36, | 		"I373": 36, | ||||||
| 		"I374": 37, | 		"I374": 37, | ||||||
| 		"I375": 38, | 		"I375": 38, | ||||||
| 		"I396": 39 | 		"I396": 39, | ||||||
|  | 		"postman": 62 | ||||||
| 	}, | 	}, | ||||||
| 	"autotile": { | 	"autotile": { | ||||||
| 		"autotile": 0, | 		"autotile": 0, | ||||||
|  | |||||||
| @ -529,9 +529,31 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = | |||||||
| 		"canUseItemEffect": "true" | 		"canUseItemEffect": "true" | ||||||
| 	}, | 	}, | ||||||
| 	"I369": { | 	"I369": { | ||||||
| 		"cls": "items", | 		"cls": "constants", | ||||||
| 		"name": "新物品", | 		"name": "动画开关", | ||||||
| 		"canUseItemEffect": "true" | 		"canUseItemEffect": "true", | ||||||
|  | 		"hideInToolbox": true, | ||||||
|  | 		"hideInReplay": true, | ||||||
|  | 		"useItemEvent": [ | ||||||
|  | 			{ | ||||||
|  | 				"type": "confirm", | ||||||
|  | 				"text": "是否开启战斗动画", | ||||||
|  | 				"yes": [ | ||||||
|  | 					{ | ||||||
|  | 						"type": "setValue", | ||||||
|  | 						"name": "flag:noAnimate", | ||||||
|  | 						"value": "false" | ||||||
|  | 					} | ||||||
|  | 				], | ||||||
|  | 				"no": [ | ||||||
|  | 					{ | ||||||
|  | 						"type": "setValue", | ||||||
|  | 						"name": "flag:noAnimate", | ||||||
|  | 						"value": "true" | ||||||
|  | 					} | ||||||
|  | 				] | ||||||
|  | 			} | ||||||
|  | 		] | ||||||
| 	}, | 	}, | ||||||
| 	"I370": { | 	"I370": { | ||||||
| 		"cls": "items", | 		"cls": "items", | ||||||
| @ -576,5 +598,67 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = | |||||||
| 		"cls": "items", | 		"cls": "items", | ||||||
| 		"name": "新物品", | 		"name": "新物品", | ||||||
| 		"canUseItemEffect": "true" | 		"canUseItemEffect": "true" | ||||||
|  | 	}, | ||||||
|  | 	"postman": { | ||||||
|  | 		"cls": "constants", | ||||||
|  | 		"name": "言灵", | ||||||
|  | 		"canUseItemEffect": "true", | ||||||
|  | 		"text": "可以发送和接收在线留言。", | ||||||
|  | 		"hideInToolbox": true, | ||||||
|  | 		"hideInReplay": true, | ||||||
|  | 		"useItemEvent": [ | ||||||
|  | 			{ | ||||||
|  | 				"type": "while", | ||||||
|  | 				"condition": "true", | ||||||
|  | 				"data": [ | ||||||
|  | 					{ | ||||||
|  | 						"type": "choices", | ||||||
|  | 						"text": "本功能需要您在h5mota.com在线游玩并处于登录状态时使用,可以发送和接受留言。\n发言后需要选择\"获取最新留言\"才能看到自己新发的留言。", | ||||||
|  | 						"choices": [ | ||||||
|  | 							{ | ||||||
|  | 								"text": "地图上显示在线留言:${flag:comment?'开':'关'}", | ||||||
|  | 								"icon": "postman", | ||||||
|  | 								"action": [ | ||||||
|  | 									{ | ||||||
|  | 										"type": "function", | ||||||
|  | 										"function": "function(){\nif (core.hasFlag('comment')) {\n\tcore.setFlag('comment', false);\n\tcore.plugin.clearCommentSign();\n} else {\n\tcore.setFlag('comment', true);\n\tcore.plugin.drawCommentSign();\n}\n}" | ||||||
|  | 									} | ||||||
|  | 								] | ||||||
|  | 							}, | ||||||
|  | 							{ | ||||||
|  | 								"text": "写留言", | ||||||
|  | 								"action": [ | ||||||
|  | 									{ | ||||||
|  | 										"type": "input2", | ||||||
|  | 										"text": "请输入要发送的评论,文明友善发言,拒绝放假、剧透。" | ||||||
|  | 									}, | ||||||
|  | 									{ | ||||||
|  | 										"type": "function", | ||||||
|  | 										"function": "function(){\nconst input = core.getFlag('input', '');\nconst tags = [core.status.floorId,\n\tcore.getHeroLoc().x.toString(), core.getHeroLoc().y.toString()\n]\nif (!core.isReplaying()) {\n\tcore.plugin.postComment(input, tags);\n}\n}" | ||||||
|  | 									} | ||||||
|  | 								] | ||||||
|  | 							}, | ||||||
|  | 							{ | ||||||
|  | 								"text": "获取最新留言", | ||||||
|  | 								"action": [ | ||||||
|  | 									{ | ||||||
|  | 										"type": "function", | ||||||
|  | 										"function": "function(){\nif (!core.isReplaying()) {\n\tcore.plugin.getComment();\n\tsetTimeout(core.plugin.drawCommentSign, 1000);\n}\n}" | ||||||
|  | 									} | ||||||
|  | 								] | ||||||
|  | 							}, | ||||||
|  | 							{ | ||||||
|  | 								"text": "退出", | ||||||
|  | 								"action": [ | ||||||
|  | 									{ | ||||||
|  | 										"type": "exit" | ||||||
|  | 									} | ||||||
|  | 								] | ||||||
|  | 							} | ||||||
|  | 						] | ||||||
|  | 					} | ||||||
|  | 				] | ||||||
|  | 			} | ||||||
|  | 		] | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| @ -295,6 +295,7 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e = | |||||||
| 	"394": {"cls":"terrains","id":"T394"}, | 	"394": {"cls":"terrains","id":"T394"}, | ||||||
| 	"395": {"cls":"terrains","id":"T395"}, | 	"395": {"cls":"terrains","id":"T395"}, | ||||||
| 	"396": {"cls":"items","id":"I396"}, | 	"396": {"cls":"items","id":"I396"}, | ||||||
|  | 	"397": {"cls":"items","id":"postman"}, | ||||||
| 	"20034": {"cls":"tileset","id":"X20034","canPass":true}, | 	"20034": {"cls":"tileset","id":"X20034","canPass":true}, | ||||||
| 	"20154": {"cls":"tileset","id":"X20154","canPass":true}, | 	"20154": {"cls":"tileset","id":"X20154","canPass":true}, | ||||||
| 	"20216": {"cls":"tileset","id":"X20216","canPass":true}, | 	"20216": {"cls":"tileset","id":"X20216","canPass":true}, | ||||||
|  | |||||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 22 KiB | 
							
								
								
									
										6080
									
								
								project/plugins.js
									
									
									
									
									
								
							
							
						
						
									
										6080
									
								
								project/plugins.js
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user