diff --git a/locale/es.properties b/locale/es.properties new file mode 100644 index 0000000..45c3046 --- /dev/null +++ b/locale/es.properties @@ -0,0 +1,2 @@ +mod_rpg_name = Mundo RPG +mod_rpg_desc = Mundo de casillas visto desde arriba al estilo de RPG Maker: tres capas de casillas y una de colisiones, movimiento por cuadrícula con WASD, eventos con la tecla de acción E/F, encuentros aleatorios y combates que vuelven al mapa. diff --git a/locale/ja.properties b/locale/ja.properties new file mode 100644 index 0000000..6df8ff0 --- /dev/null +++ b/locale/ja.properties @@ -0,0 +1,2 @@ +mod_rpg_name = RPG ワールド +mod_rpg_desc = RPG Maker 風の見下ろし型タイルワールド:3 つのタイルレイヤーと衝突レイヤー、WASD でのマス目移動、アクションキー E/F のイベント、ランダムエンカウント、マップに戻ってくるバトル。 diff --git a/locale/ko.properties b/locale/ko.properties new file mode 100644 index 0000000..8aa389a --- /dev/null +++ b/locale/ko.properties @@ -0,0 +1,2 @@ +mod_rpg_name = RPG 월드 +mod_rpg_desc = RPG Maker 스타일의 탑다운 타일 월드: 타일 레이어 3개와 충돌 레이어, WASD 격자 이동, 액션 키 E/F 이벤트, 랜덤 인카운터, 맵으로 돌아오는 전투. diff --git a/locale/vi.properties b/locale/vi.properties new file mode 100644 index 0000000..8f7da54 --- /dev/null +++ b/locale/vi.properties @@ -0,0 +1,2 @@ +mod_rpg_name = Thế giới RPG +mod_rpg_desc = Thế giới ô nhìn từ trên xuống theo phong cách RPG Maker: ba lớp ô và một lớp va chạm, di chuyển theo lưới bằng WASD, sự kiện bằng phím hành động E/F, chạm trán ngẫu nhiên và các trận chiến quay về bản đồ. diff --git a/locale/zh.properties b/locale/zh.properties new file mode 100644 index 0000000..a62ed95 --- /dev/null +++ b/locale/zh.properties @@ -0,0 +1,2 @@ +mod_rpg_name = RPG 世界 +mod_rpg_desc = RPG Maker 风格的俯视瓦片世界:三层瓦片和一层碰撞层,用 WASD 按网格行走,用动作键 E/F 触发事件,随机遇敌,战斗结束后回到地图。 diff --git a/src/Data/RpgMapEvent.cs b/src/Data/RpgMapEvent.cs index 07c1210..2be16e5 100644 --- a/src/Data/RpgMapEvent.cs +++ b/src/Data/RpgMapEvent.cs @@ -73,6 +73,7 @@ namespace Cthangover.Mods.Rpg public string File { get; set; } /// Effective solidity: explicit value, else whether the event is drawn. + [JsonIgnore] public bool IsSolid => Solid ?? (!string.IsNullOrEmpty(Sprite) || Tile >= 0 || !string.IsNullOrEmpty(Icon)); } } diff --git a/tests/RpgStateTests.cs b/tests/RpgStateTests.cs index b17a5f5..d6b6073 100644 --- a/tests/RpgStateTests.cs +++ b/tests/RpgStateTests.cs @@ -91,6 +91,7 @@ namespace Cthangover.Mods.Rpg.Tests ModAssert.Equal("herb != 1", again.Events[1].Condition, "condition"); ModAssert.Equal("end", again.Events[1].Commands[0], "commands"); ModAssert.False(text.Contains("some_mod"), "where an event came from is not written"); + ModAssert.False(text.Contains("IsSolid"), "the computed solidity is not written"); } [ModTest("state/event_merge_adds_and_replaces")]