plugins/network/resource-pack/central/generator/future_metals.py

36 lines
1.9 KiB
Python

"""The Owner's explicit sci-fi exception: refined ingots and raw ore icons only."""
from dunelib import Cv,hexagon
NAMES={'iron_ingot','gold_ingot','copper_ingot','netherite_ingot','raw_iron','raw_gold','raw_copper'}
MATERIALS={
'iron':('#dbe6df','#617873','#6ed0da'),
'gold':('#f0cf7d','#98702d','#ffb347'),
'copper':('#e3a074','#875032','#74c6a4'),
'netherite':('#8d819b','#282a35','#a797d3')}
def draw(name):
material=name.removeprefix('raw_').removesuffix('_ingot');hi,lo,signal=MATERIALS[material]
cv=Cv(64)
if name.startswith('raw_'):
# Chunky mineral facets and engineered seams; no rarity/MK badges or implied stats.
for points in (
[(10,27),(16,14),(29,11),(35,23),(28,40),(15,43)],
[(27,15),(39,7),(53,14),(57,31),(47,43),(32,37)],
[(18,39),(32,30),(48,37),(50,50),(36,58),(20,53)]):
mask=cv.poly(points);cv.fill(mask,hi,lo);cv.bevel(mask,.5,.5,1);cv.edge(mask,'#283b31',1,1)
for path in ([(17,18),(24,24),(20,35)],[(39,12),(42,23),(52,29)],[(25,44),(35,40),(43,48)]):
line=cv.line(path,1.2);cv.glow(line,signal,1.2,.35);cv.solid(line,signal)
else:
# Dune-II-like industrial casing: broad machined planes, restrained indicator strips.
side=cv.poly([(6,28),(41,15),(58,27),(58,43),(23,56),(6,45)])
cv.fill(side,lo,'#26372f');cv.bevel(side,.4,.6,1);cv.edge(side,'#1c2b24',1,1)
top=cv.poly([(6,27),(41,13),(58,25),(23,40)])
cv.fill(top,hi,lo);cv.bevel(top,.6,.4,1);cv.edge(top,hi,.7,1)
for points in ([(13,25),(19,23),(36,35),(30,37)],[(43,18),(49,21),(16,34),(10,31)]):
band=cv.poly(points);cv.fill(band,'#355345','#172c25');cv.edge(band,lo,.7,1)
inset=cv.poly([(27,25),(37,21),(43,25),(33,30)])
cv.fill(inset,'#182d26','#0b1915');cv.edge(inset,signal,.8,1)
trace=cv.line([(29,26),(36,23),(40,25)],1);cv.glow(trace,signal,1.4,.45);cv.solid(trace,signal)
for x,y in ((27,45),(36,42),(45,38)):
cv.solid(cv.line([(x,y),(x+4,y-1)],1.4),signal)
return cv.out()