Bestenliste, Expeditionen, Ereignisse, Dreizack und Netz, aufrechte Schilde, dunkle Haut
Stand von main 82292b5c. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -25,11 +25,13 @@ namespace GladiatorIdle.Arena
|
||||
void InitModel(int color)
|
||||
{
|
||||
_model = Model3D.Load(_art);
|
||||
bool own = _model != null;
|
||||
foreach (var alt in Fallbacks(_art)) _model ??= Model3D.Load(alt);
|
||||
_model ??= Model3D.Load(DefaultModel);
|
||||
// Vorlage mit dunkler Haut, aber noch ohne eigenes Modell: Haut des Ersatzmodells abdunkeln
|
||||
if (!own && _model != null && DarkSkin.Contains(_art)) _model.SetSkin(1);
|
||||
if (_model == null || _model.Clips.Count == 0) { _model = null; return; }
|
||||
_model.AddSword();
|
||||
_model.AddShield();
|
||||
_model.Arm(_art);
|
||||
_model.SetColor(color);
|
||||
var idle = Clip3("idle");
|
||||
_model.Pose(idle, 0, true);
|
||||
@@ -49,6 +51,10 @@ namespace GladiatorIdle.Arena
|
||||
_mfx.SpecularPower = 24;
|
||||
}
|
||||
|
||||
/// Aussehen-Vorlagen mit dunkler Haut (Bilder hero_<klasse>_2).
|
||||
static readonly System.Collections.Generic.HashSet<string> DarkSkin = new()
|
||||
{ "hero_murmillo_2", "hero_secutor_2", "hero_thraex_2", "hero_retiarius_2" };
|
||||
|
||||
/// Figuren ohne eigenes Modell: eine ähnliche vorhandene (in eigener Teamfarbe), bis es eines gibt.
|
||||
static System.Collections.Generic.IEnumerable<string> Fallbacks(string art)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user