Skip to content

Quick References

cheeeeeeeeeen edited this page Dec 1, 2020 · 1 revision

API Overview

Allowing Arms Race to proc

float damage = someDamage * multipliers * coefficients;
bool crit = Util.CheckRoll(100, body.master);
ArmsRace.instance.TriggerArtillery(body, damage, crit, default);

Including a Custom Drone into Drone Repair Kit's scope

bool isAdded = DroneRepairKit.instance.SupportCustomDrone("CharacterMasterName");
if (isAdded)
{
    MyPlugin.myLogger.LogMessage("Drone supported!");
}
else
{
    MyPlugin.myLogger.LogMessage("Drone already supported.");
}