Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken 2025-04-04 13:39:29 -04:00
commit 7472fe5c12
37 changed files with 45 additions and 0 deletions

View file

@ -2531,6 +2531,7 @@ lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2461,6 +2461,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2485,6 +2485,7 @@ lenum.shootp = Прицелва се в единица/сграда, изчис
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Дали блокът е активиран или забранен.
laccess.currentammotype = Текущите муниции/течност на оръдието.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Цвят на осветителя.
laccess.controller = Показва кой контролира единицата.\nАко се управлява от процесор, показва него.\nАко е във формация, показва водача й.\nИначе ще покаже самата единица.

View file

@ -2487,6 +2487,7 @@ lenum.shootp = Dispara a una unitat/bloc tenint en compte la seva velocitat a l
lenum.config = Configuració de lestructura, com ara el classificador.
lenum.enabled = Retorna si el bloc està activat.
laccess.currentammotype = Líquid o element de munició actual de la torreta.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Color de lil·luminador.
laccess.controller = Controlador de la unitat. Si es controla per processador, retorna el processador.\nAltrament, retorna la mateixa unitat.

View file

@ -2486,6 +2486,7 @@ lenum.shootp = Vystřelí na jednotku/budovu s rychlostní předpovědí.
lenum.config = Konfigurace budovy, např. třídící věc pro třídičku.
lenum.enabled = Zda je blok povolen.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Počet buněk v paměťovém bloku.
laccess.color = Barva osvětlovače.
laccess.controller = Kontroler jednotky. Pokud procesor je kontrolován, vrátí procesor\nPokud je ve formaci, vrací vůdce.\nJinak vrací jednotku.

View file

@ -2461,6 +2461,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2516,6 +2516,7 @@ lenum.shootp = Schießt auf eine Einheit / einen Block und sagt deren Position v
lenum.config = Blockkonfiguration, z.B. das ausgewählte Item in einem Sortierer.
lenum.enabled = Ob der Block an oder aus ist.
laccess.currentammotype = Aktuelle Munitionsart eines Geschützes
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminiererfarbe.
laccess.controller = Einheitensteurer. Gibt "processor" zurück, wenn die Einheit prozessorgesteuert ist,.\nGibt den Steuerer zurück, wenn die Einheit Teil einer Formation ist.\nSonst wird einfach die Einheit zurückgegeben.

View file

@ -2505,6 +2505,7 @@ lenum.shootp = Dispara a una unidad/estructura con predicción de velocidad.
lenum.config = Configuración de estructura, por ejemplo: el objeto seleccionado en un clasificador.
lenum.enabled = Si el bloque está activado.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Color del iluminador.
laccess.controller = Controlador de unidad. Si se controla mediante un procesador, devuelve dicho procesador.\nSi está en formación, devuelve su líder.\nDe otra forma, devuelve la misma unidad.

View file

@ -2466,6 +2466,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2465,6 +2465,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2468,6 +2468,7 @@ lenum.shootp = Ammu yksikköä/rakennusta nopeudenennustus päällä.
lenum.config = Rakennuksen säätö, esim. lajittelijan valinta.
lenum.enabled = Selvitä, onko palikka päällä.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Lampun väri.
laccess.controller = Yksikön hallitsija. Jos yksikköä hallitsee prosessori, palauttaa prosessorin.\nJos yksikkö on muodostelmassa, palauttaa johtajan.\nPalauttaa muulloin itse yksikön.
laccess.dead = Selvitä, onko yksikkö/rakennus tuhoutunut tai ei enää kelvollinen.

View file

@ -2473,6 +2473,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2512,6 +2512,7 @@ lenum.shootp = Tire à une unité/bâtiment avec la prédiction de mouvement.
lenum.config = La configuration d'un bâtiment. Par exemple, l'objet sélectionné dans un trieur.
lenum.enabled = Retourne si le bloc est activé ou pas.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = La couleur d'un illuminateur.
laccess.controller = Le contrôleur de l'Unité.\nSi l'Unité est contrôlée par un processeur, cela retournera le processeur en question.\nSi l'Unité est en formation, cela retournera le leader de la formation.\nSinon, renvoie lunité elle-même.

View file

@ -2528,6 +2528,7 @@ lenum.shootp = Lövés egy egységre/épületre sebesség-előrejelzéssel.
lenum.config = Épületkonfiguráció, például nyersanyag-válogató.
lenum.enabled = Engedélyezve van-e a blokk.
laccess.currentammotype = Egy lövegtorony jelenlegi lőszer nyersanyaga/folyadéka.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Megvilágítás színe.
laccess.controller = Egységvezérlő. Ha processzor vezérli, akkor a processzort adja vissza.\nMáskülönben magát az egységet adja vissza.

View file

@ -2529,6 +2529,7 @@ lenum.config = Pengaturan bangunan, misalnya menyortir barang.
lenum.enabled = Menentukan aktif tidaknya suatu blok.
laccess.currentammotype = Bahan amunisi/cairan menara saat ini.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Warna lampu.
laccess.controller = Pengendali unit. Jika dikendalikan prosesor, mengembalikan prosesor.\nJika unit dalam barisan, mengembalikan leader.\nSebaliknya, mengembalikan unit itu sendiri.
laccess.dead = Menentukan apakah unit/bangunan itu hancur atau tidak ada lagi.

View file

@ -2475,6 +2475,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2479,6 +2479,7 @@ lenum.shootp = 任意のユニットや建物を撃ちます。
lenum.config = 建物の設定を取得します。\n例:ソーターに設定されているアイテムなど
lenum.enabled = ブロックが有効かどうかを取得します。
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = イルミネーターの色を取得します。
laccess.controller = ユニットを制御しているものを取得します。\nプロセッサ制御の場合、制御しているプロセッサを返します。\nほかのユニットに制御されている場合、制御しているユニットを返します。\nそれ以外の場合は、ユニット自身を返します。
laccess.dead = ユニットや建物が機能しているかどうか、またはもう有効でないかどうか。

View file

@ -2527,6 +2527,7 @@ lenum.config = 필터의 아이템같은 건물의 설정
lenum.enabled = 블록의 활성 여부
laccess.currentammotype = 포탑의 현재 탄약/액체.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = 조명 색상.
laccess.controller = 유닛 제어자. 프로세서가 제어하면, 프로세서를 반환합니다.\n다른 유닛에 의해 지휘되면(G키), 지휘하는 유닛을 반환합니다.\n그 외에는 자신을 반환합니다.
laccess.dead = 기체 또는 건물 사망/무효 여부.

View file

@ -2463,6 +2463,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2476,6 +2476,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2463,6 +2463,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2499,6 +2499,7 @@ lenum.shootp = Strzel w jednostkę/budynek z zachowaniem trajektorii.
lenum.config = Konfiguracja budynku, np. sortownika.
lenum.enabled = Sprawdza czy blok jest włączony.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Kolor iluminatora.
laccess.controller = Kontroler jednostki. Jeśli jest kontrolowana przez procesor, zwraca procesor.\nJeśli we formacji, zwraca przywódcę.\nW innym wypadku zwraca samą jednostkę.

View file

@ -2509,6 +2509,7 @@ lenum.shootp = Atire em uma unidade/edifício com previsão de velocidade.
lenum.config = Configuração do edifício, por ex. item classificador.
lenum.enabled = Se o bloco está ativado.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Cor do iluminador.
laccess.controller = Controlador de unidade. Se controlado pelo processador, retorna o processador.\nCaso contrário, retorna a própria unidade.

View file

@ -2531,6 +2531,7 @@ lenum.config = Configuração do edifício, por ex. item classificador.
lenum.enabled = Se o bloco está ativado.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Cor do iluminador.
laccess.controller = Controlador de unidade. Se controlado pelo processador, retorna o processador.\nCaso contrário, retorna a própria unidade.
laccess.dead = Se uma unidade/edifício está morta ou não é mais válida.

View file

@ -2482,6 +2482,7 @@ lenum.shootp = Lovește către o unitate/clădire. Anticipează viteza țintei
lenum.config = Configurația clădirii, de ex. materialul selectat pt Sortator.
lenum.enabled = Specifică dacă clădirea este pornită.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Culoarea iluminatorului.
laccess.controller = Controlorul unității. Dacă e controlată de procesor, returnează procesorul.\nDacă e într-o formație, returnează liderul.\nAltfel, returnează unitatea însăși.

View file

@ -2489,6 +2489,7 @@ lenum.shootp = Стрельба в единицу/постройку с расч
lenum.config = Конфигурация постройки, например, предмет сортировки.
lenum.enabled = Включён ли блок.
laccess.currentammotype = Текущий боеприпас турели.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Цвет осветителя.
laccess.controller = Командующий единицей. Если единица управляется процессором, возвращает процессор. Если в строю, возвращает командующего.\nВ противном случае возвращает саму единицу.

View file

@ -2485,6 +2485,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Konfiguracija građevine, npr. sortirani materijal.
lenum.enabled = Da li je ova građevina osposobljena.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Boja iluminatora.
laccess.controller = Upravljač jedinice. Ako upravljano putem procesora, šalji "processor".\nAko je upravljano u formaciji, šalji "lider".U ostalim slučajevima, šalji jedinicu za sebe.

View file

@ -2463,6 +2463,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2499,6 +2499,7 @@ lenum.shootp = ยิงเป้าหมายโดยมีการคำ
lenum.config = การกำหนดค่าของสิ่งก่อสร้าง เช่น ไอเท็มของเครื่องคัดแยก
lenum.enabled = ว่าบล็อกเปิดใช้งาน/ทำงานอยู่หรือเปล่า
laccess.currentammotype = ประเภทของกระสุนไอเท็ม/ของเหลวในปัจจุบันของป้อมปืน
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = สีของตัวเปล่งแสง
laccess.controller = ผู้ควบคุมยูนิต ถ้าผู้ควบคุมคือตัวประมวลผล จะส่งกลับค่า processor\nนอกนั้น จะส่งกลับค่าตัวยูนิตเอง

View file

@ -2463,6 +2463,7 @@ lenum.shootp = Shoot at a unit/building with velocity prediction.
lenum.config = Building configuration, e.g. sorter item.
lenum.enabled = Whether the block is enabled.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Illuminator color.
laccess.controller = Unit controller. If processor controlled, returns processor.\nIf in a formation, returns leader.\nOtherwise, returns the unit itself.
laccess.dead = Whether a unit/building is dead or no longer valid.

View file

@ -2482,6 +2482,7 @@ lenum.shootp = Belli bir birim veya binaya ateş et.
lenum.config = Bina yapılandırması, örnek: Ayıklayıcı Türü
lenum.enabled = Blok aktif mi?
laccess.currentammotype = Bir turretin içindeki şuanki mermi/sıvı.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Aydınlatıcı Rengi
laccess.controller = Birim Kontrol edici. Eğer işlemci kontrol ediyorsa işlemci döner. \nFormasyon durumundaysa, lider döner.\nDiğer şekilde, birimi kendi döner.

View file

@ -2509,6 +2509,7 @@ lenum.shootp = Стріляти в одиницю чи будівлю із пе
lenum.config = Конфігурація будівлі, як-от в сортувальника.
lenum.enabled = Чи блок увімкнено.
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Колір освітлювача.
laccess.controller = Керувач одиницями. Якщо процесор керує одиницею, повертає процесор.\nЯкщо у формуванні, повертається лідер.\nІнакше повертає саму одиницю.

View file

@ -2529,6 +2529,7 @@ lenum.config = Cấu hình công trình, kiểu như vật phẩm của Khối s
lenum.enabled = Khối có đang hoạt động.
laccess.currentammotype = Đạn vật phẩm/chất lỏng hiện tại của bệ súng.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = Màu đèn chiếu sáng.
laccess.controller = Thứ điều khiển đơn vị. Nếu khối xử lý đã điều khiển, trả về khối xử lý.\nNgược lại, trả về chính đơn vị đó.
laccess.dead = Đơn vị/công trình đã chết hoặc không còn hợp lệ hay không.

View file

@ -2513,6 +2513,7 @@ lenum.shootp = 根据提前量向某个单位或建筑瞄准/射击
lenum.config = 建筑设置,例如分类器所设置的筛选物品种类
lenum.enabled = 建筑是否已启用
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = 照明器发光的颜色
laccess.controller = 单位的控制方\n如果单位由处理器控制返回对应的处理器\n如果单位在编队中返回编队的领队\n其他情况返回单位自身

View file

@ -2508,6 +2508,7 @@ lenum.shootp = 對指定單位/建築開火,具自瞄功能
lenum.config = 建築設置,例如分類器篩选的物品種類
lenum.enabled = 確認該建築是否啟用
laccess.currentammotype = Current ammo item/liquid of a turret.
laccess.memorycapacity = Number of cells in a memory block.
laccess.color = 照明燈顏色
laccess.controller = 單位的控制者。受處理器控制時回傳處理器。\n在隊形中回傳領導的單位。\n否則回傳單位自己。

View file

@ -18,6 +18,7 @@ public enum LAccess{
ammo,
ammoCapacity,
currentAmmoType,
memoryCapacity,
health,
maxHealth,
heat,

View file

@ -2,6 +2,7 @@ package mindustry.world.blocks.logic;
import arc.util.io.*;
import mindustry.gen.*;
import mindustry.logic.*;
import mindustry.world.*;
import mindustry.world.meta.*;
@ -55,6 +56,14 @@ public class MemoryBlock extends Block{
return accessible();
}
@Override
public double sense(LAccess sensor){
return switch(sensor){
case memoryCapacity -> memoryCapacity;
default -> super.sense(sensor);
};
}
@Override
public void damage(float damage){
if(privileged) return;