瀏覽代碼

Remove stock requirement from Meido

The StockNo property is not used anymore and is just leftovers from the
previous usage of stock no for calling maids.
habeebweeb 1 年之前
父節點
當前提交
0667a046e9
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      src/MeidoPhotoStudio.Plugin/Meido/Meido.cs

+ 2 - 5
src/MeidoPhotoStudio.Plugin/Meido/Meido.cs

@@ -47,10 +47,9 @@ public class Meido
     private float[] blendSetValueBackup;
     private bool freeLook;
 
-    public Meido(int stockMaidIndex)
+    public Meido(Maid maid)
     {
-        StockNo = stockMaidIndex;
-        Maid = GameMain.Instance.CharacterMgr.GetStockMaid(stockMaidIndex);
+        Maid = maid;
 
         IKManager = new(this);
         IKManager.SelectMaid += (_, args) =>
@@ -96,8 +95,6 @@ public class Meido
 
     public bool Loading { get; private set; }
 
-    public int StockNo { get; }
-
     public Maid Maid { get; }
 
     public MeidoDragPointManager IKManager { get; }