游戏达人
  
- 贡献度
- 420
- 金元
- 16225
- 积分
- 3333
- 精华
- 3
- 注册时间
- 2014-11-13

|
本帖最后由 qweytr_1 于 2018-5-30 16:42 编辑
不知为何firefox出了问题
修改这些应该够用了
// EquipmentSpec
public void Process(DrugData drugData, string player, int specialValue = 0)
drugData.concentration = ((player == "player") ? -1 : this.GetNewConcentration(drugData.concentration, specialValue));
可以做到强子对撞机"碰撞"效果
if (player == "player" &&effect!=null&& !effect.isDemandable)
{
effect = null;//无视“不可删除”删除副作用
}else if (effect != null && effect.GetReaction() != null && (player == "player" || effect.GetReaction().CheckHow(this.id, drugData.concentration, this.outputType, effects)))//玩家无视条件升级药品
{
if (effect.GetReaction().product.Equals("none"))
{
effect = null;
}
else
{
effect = SingletonPrefab<Backbone>.instance.store.allEffects[effect.GetReaction().product];
}
}
if (this.rotator != null)
{
array[(i + specialValue) % 4] = effect;
}
else
{
array = effect;
}
// EffectItem
public static Color GetMaxColorByLevel(int level, bool active)#修改最优属性颜色
// ConcBar
public void UpdateConcBar(Effect effect, bool active)
{修改是否显示颜色
}
// ResearchData
public void Init(string player, CompanyData company)
可以修改工作速度
// ShakerDropdown
public void Init(Machine m)
震荡机的振荡次数
// ResearchData
public bool IsEquipmentUnlocked(EquipmentSpec spec)
解锁装备
public static int GetSalaryForType(WorkforceType type, string player)
{
if (player == "player")
{
return 0;
}
可以不发工资
public partial class WorkforceHirer : BigPharmaBase
{
private void Hire()
{
int baseHireCostForType = WorkforceManager.GetBaseHireCostForType(this.type);
//是针对玩家的,可以直接写0
// Machine
public void DoProduction()
可以改各种物品的生成
下面是针对原料解锁的修改(失败)
public void IncrementProgress()
{
if (BigPharmaBase.backbone.gameGUI.workforceManager.dudesByBox[this.workforceBox] == 0)
{
return;
}
if (this.ingredientProgress.Increment(DrugListItem.GetExplorationProgress(this.drugSpec.location.type, "player")))
{
this.Discover();
}
this.progressIndicator.UpdateProgressText(this.ingredientProgress.GetProgressFloat());
}
public partial class ImportDrugChooser : BigPharmaBase
{
public void DrugDailyUpdate()
//Effect
public float CalculateStrength(int concentration, Drug.Type type, string player, Effect[] allEffectsInDrug)
计算强度
|
|