Bug fixes (#151)

* fix: TL random spawners name

* fix: ExplosionSystem admin-chatalert

* fix: some TL

* tweak: RCD can place floor on platings

* typo
This commit is contained in:
Nair Sark
2024-03-01 07:05:26 +05:00
committed by GitHub
parent 9b4af878b5
commit d7dcdb3dba
8 changed files with 44 additions and 23 deletions

View File

@@ -265,20 +265,23 @@ public sealed partial class ExplosionSystem
if (!addLog) if (!addLog)
return; return;
var entPos = (posFound ? $"{gridPos:coordinates}" : "[Grid or Map not found]"); // WD EDIT
if (user == null) if (user == null)
{ {
_adminLogger.Add(LogType.Explosion, LogImpact.High, _adminLogger.Add(LogType.Explosion, LogImpact.High,
$"{ToPrettyString(uid):entity} exploded ({typeId}) at Pos:{(posFound ? $"{gridPos:coordinates}" : "[Grid or Map not found]")} with intensity {totalIntensity} slope {slope}"); $"{ToPrettyString(uid):entity} exploded ({typeId}) at Pos:{entPos} with intensity {totalIntensity} slope {slope}");
_chatManager.SendAdminAnnouncement(Loc.GetString("admin-chatalert-explosion-no-player", _chatManager.SendAdminAnnouncement(Loc.GetString("admin-chatalert-explosion-no-player",
("entity", ToPrettyString(uid)), ("coordinates", pos), ("intensity", totalIntensity), ("slope", slope))); ("entity", ToPrettyString(uid)), ("coordinates", entPos), ("intensity", totalIntensity), ("slope", slope)));
} }
else else
{ {
_adminLogger.Add(LogType.Explosion, LogImpact.High, _adminLogger.Add(LogType.Explosion, LogImpact.High,
$"{ToPrettyString(user.Value):user} caused {ToPrettyString(uid):entity} to explode ({typeId}) at Pos:{(posFound ? $"{gridPos:coordinates}" : "[Grid or Map not found]")} with intensity {totalIntensity} slope {slope}"); $"{ToPrettyString(user.Value):user} caused {ToPrettyString(uid):entity} to explode ({typeId}) at Pos:{entPos} with intensity {totalIntensity} slope {slope}");
var alertMinExplosionIntensity = _cfg.GetCVar(CCVars.AdminAlertExplosionMinIntensity); var alertMinExplosionIntensity = _cfg.GetCVar(CCVars.AdminAlertExplosionMinIntensity);
if (alertMinExplosionIntensity > -1 && totalIntensity >= alertMinExplosionIntensity) if (alertMinExplosionIntensity > -1 && totalIntensity >= alertMinExplosionIntensity)
_chat.SendAdminAlert(user.Value, $"caused {ToPrettyString(uid)} to explode ({typeId}:{totalIntensity}) at Pos:{(posFound ? $"{gridPos:coordinates}" : "[Grid or Map not found]")}"); _chatManager.SendAdminAnnouncement(Loc.GetString("admin-chatalert-explosion-player",
("player", $"{ToPrettyString(user.Value):user}"),("entity", ToPrettyString(uid)), ("coordinates", entPos), ("intensity", totalIntensity), ("slope", slope)));
} }
} }

View File

@@ -234,11 +234,13 @@ public sealed class RCDSystem : EntitySystem
if (!unobstructed) if (!unobstructed)
return false; return false;
var tileDef = (ContentTileDefinition) _tileDefMan[tile.Tile.TypeId];
switch (comp.Mode) switch (comp.Mode)
{ {
//Floor mode just needs the tile to be a space tile (subFloor) //Floor mode just needs the tile to be a space tile (subFloor)
case RcdMode.Floors: case RcdMode.Floors:
if (!tile.Tile.IsEmpty)
if (!tile.Tile.IsEmpty && !tileDef.IsSubFloor)
{ {
_popup.PopupClient(Loc.GetString("rcd-component-cannot-build-floor-tile-not-empty-message"), uid, user); _popup.PopupClient(Loc.GetString("rcd-component-cannot-build-floor-tile-not-empty-message"), uid, user);
return false; return false;
@@ -260,7 +262,7 @@ public sealed class RCDSystem : EntitySystem
return false; return false;
} }
// the turf can't be destroyed (planet probably) // the turf can't be destroyed (planet probably)
var tileDef = (ContentTileDefinition) _tileDefMan[tile.Tile.TypeId];
if (tileDef.Indestructible) if (tileDef.Indestructible)
{ {
_popup.PopupClient(Loc.GetString("rcd-component-tile-indestructible-message"), uid, user); _popup.PopupClient(Loc.GetString("rcd-component-tile-indestructible-message"), uid, user);

View File

@@ -13,6 +13,6 @@ rcd-component-no-ammo-message = The RCD is out of ammo!
rcd-component-tile-obstructed-message = That tile is obstructed! rcd-component-tile-obstructed-message = That tile is obstructed!
rcd-component-tile-indestructible-message = That tile can't be destroyed! rcd-component-tile-indestructible-message = That tile can't be destroyed!
rcd-component-deconstruct-target-not-on-whitelist-message = You can't deconstruct that! rcd-component-deconstruct-target-not-on-whitelist-message = You can't deconstruct that!
rcd-component-cannot-build-floor-tile-not-empty-message = You can only build a floor on space! rcd-component-cannot-build-floor-tile-not-empty-message = You can only build a floor in space or on plating!
rcd-component-cannot-build-wall-tile-not-empty-message = You cannot build a wall on space! rcd-component-cannot-build-wall-tile-not-empty-message = You cannot build a wall on space!
rcd-component-cannot-build-airlock-tile-not-empty-message = Cannot build an airlock on space! rcd-component-cannot-build-airlock-tile-not-empty-message = Cannot build an airlock on space!

View File

@@ -69,17 +69,22 @@ chat-speech-verb-insect-3 = щелкает
chat-speech-verb-winged-1 = трепещет chat-speech-verb-winged-1 = трепещет
chat-speech-verb-winged-2 = жужжит chat-speech-verb-winged-2 = жужжит
chat-speech-verb-winged-3 = похлопывает
chat-speech-verb-slime-1 = бормочет chat-speech-verb-slime-1 = бормочет
chat-speech-verb-slime-2 = булькает
chat-speech-verb-slime-3 = хлюпает
chat-speech-verb-plant-1 = шуршит chat-speech-verb-plant-1 = шуршит
chat-speech-verb-plant-2 = скрипит chat-speech-verb-plant-2 = скрипит
chat-speech-verb-plant-3 = трещит
chat-speech-verb-robotic-1 = утверждает chat-speech-verb-robotic-1 = утверждает
chat-speech-verb-robotic-2 = бипает chat-speech-verb-robotic-2 = бипает
chat-speech-verb-reptilian-1 = шипит chat-speech-verb-reptilian-1 = шипит
chat-speech-verb-reptilian-2 = фыркает chat-speech-verb-reptilian-2 = фыркает
chat-speech-verb-reptilian-3 = пыхтит
chat-speech-verb-skeleton-1 = гремит chat-speech-verb-skeleton-1 = гремит
chat-speech-verb-skeleton-2 = щелкает chat-speech-verb-skeleton-2 = щелкает
@@ -106,6 +111,10 @@ chat-speech-verb-ghost-2 = дышит
chat-speech-verb-ghost-3 = мычит chat-speech-verb-ghost-3 = мычит
chat-speech-verb-ghost-4 = бормочет chat-speech-verb-ghost-4 = бормочет
chat-speech-verb-electricity-1 = потрескивает
chat-speech-verb-electricity-2 = гудит
chat-speech-verb-electricity-3 = скрипит
chat-manager-cooldown-warn-message_channel = Вы сможете писать { $inChat } через: { $remainingTime } сек. chat-manager-cooldown-warn-message_channel = Вы сможете писать { $inChat } через: { $remainingTime } сек.
chat-manager-cooldown-warn-message = Вы сможете писать через { $remainingTime } сек. chat-manager-cooldown-warn-message = Вы сможете писать через { $remainingTime } сек.
chat-manager-antispam-warn-message = Вы сможете повторить сообщение через { $remainingTime } сек. chat-manager-antispam-warn-message = Вы сможете повторить сообщение через { $remainingTime } сек.

View File

@@ -30,11 +30,15 @@ ent-SpawnMobXenoTurret = Спавнер ксено турели
.desc = "" .desc = ""
ent-SpawnMobXenoTower = Спавнер ксено башни ent-SpawnMobXenoTower = Спавнер ксено башни
.desc = "" .desc = ""
ent-MobRandomServiceCorpse = Рандомное тело моба обслуживания ent-MobRandomServiceCorpse = неизвестный лакей
.desc = "" .desc = "Его дни сочтены. По униформе похож на обслугу."
ent-MobRandomEngineerCorpse = Рандомное тело моба инженера .suffix = "Мертвый"
.desc = "" ent-MobRandomEngineerCorpse = неизвестный инженер
ent-MobRandomCargoCorpse = Рандомное тело моба карго .desc = "Его рука больше не может держать лом."
.desc = "" .suffix = "Мертвый"
ent-MobRandomMedicCorpse = Рандомное тело моба медика ent-MobRandomCargoCorpse = неизвестный грузчик
.desc = "" .desc = "Они же не могут восстать из мертвых, да?"
.suffix = "Мертвый"
ent-MobRandomMedicCorpse = неизвестный врач
.desc = "Мазь и бинты здесь уже не помогут."
.suffix = "Мертвый"

View File

@@ -1,9 +1,12 @@
ent-MobRandomScienceCorpse = Рандомное тело моба ученого ent-MobRandomScienceCorpse = неизвестный ученый
.desc = "" .desc = "Его смерть будет самой великой загадкой."
ent-MobRandomSecurityCorpse = Рандомное тело моба СБ .suffix = "Мертвый"
.desc = "" ent-MobRandomSecurityCorpse = неизвестный охранник
ent-MobRandomCommandCorpse = Рандомное тело моба коммандования .desc = "Вы видите след ящика из-под инструментов на его затылке."
.desc = "" .suffix = "Мертвый"
ent-MobRandomCommandCorpse = неизвестный глава
.desc = "Возможно теперь его вещи в надежных руках?"
.suffix = "Мертвый"
ent-FoodEggChickenFertilized = { ent-FoodEgg } ent-FoodEggChickenFertilized = { ent-FoodEgg }
.desc = { ent-FoodEggBase.desc } .desc = { ent-FoodEggBase.desc }
ent-FoodEggDuckFertilized = { ent-FoodEgg } ent-FoodEggDuckFertilized = { ent-FoodEgg }

View File

@@ -25,6 +25,6 @@ rcd-component-no-ammo-message = В РЦД закончились заряды!
rcd-component-tile-indestructible-message = Эта плитка не может быть уничтожена! rcd-component-tile-indestructible-message = Эта плитка не может быть уничтожена!
rcd-component-tile-obstructed-message = Этот тайл заблокирован! rcd-component-tile-obstructed-message = Этот тайл заблокирован!
rcd-component-deconstruct-target-not-on-whitelist-message = Вы не можете это деконструировать! rcd-component-deconstruct-target-not-on-whitelist-message = Вы не можете это деконструировать!
rcd-component-cannot-build-floor-tile-not-empty-message = Пол можно построить только в космосе! rcd-component-cannot-build-floor-tile-not-empty-message = Пол можно построить только в космосе или на покрытии!
rcd-component-cannot-build-wall-tile-not-empty-message = Вы не можете построить стену в космосе! rcd-component-cannot-build-wall-tile-not-empty-message = Вы не можете построить стену в космосе!
rcd-component-cannot-build-airlock-tile-not-empty-message = Вы не можете построить шлюз в космосе! rcd-component-cannot-build-airlock-tile-not-empty-message = Вы не можете построить шлюз в космосе!

View File

@@ -1 +1 @@
station-event-immovable-rod-start-announcement = Неопознанный объект на высокой скорости движется по курсу столкновения со станцией. Воздействие неизбежно. station-event-immovable-rod-start-announcement = Неопознанный объект на высокой скорости движется по курсу столкновения со станцией. Столкновение неизбежно.