public SkillSupport(ENABLE_EQUIP_TYPE e, BuffParam.BUFFTYPE t, int v, SP_ATTACK_TYPE spAttackType) { targetEquip = e; type = t; value = v; targetSpAttackType = spAttackType; }
public void StartBuff(string enemy_name, BuffParam.BUFFTYPE type) { if (IsAnnounce(type) && AnnounceStart()) { SetupAnnounceInfo(enemy_name, STRING_CATEGORY.BUFF, (uint)type); } }
private bool IsAnnounce(BuffParam.BUFFTYPE type) { if (type == BuffParam.BUFFTYPE.POISON || type == BuffParam.BUFFTYPE.BURNING || type == BuffParam.BUFFTYPE.DEADLY_POISON || type == BuffParam.BUFFTYPE.GHOST_FORM || type == BuffParam.BUFFTYPE.ELECTRIC_SHOCK || type == BuffParam.BUFFTYPE.INK_SPLASH || type == BuffParam.BUFFTYPE.DEFDOWN_RATE_NORMAL || type == BuffParam.BUFFTYPE.DEFDOWN_RATE_FIRE || type == BuffParam.BUFFTYPE.DEFDOWN_RATE_WATER || type == BuffParam.BUFFTYPE.DEFDOWN_RATE_THUNDER || type == BuffParam.BUFFTYPE.DEFDOWN_RATE_SOIL || type == BuffParam.BUFFTYPE.DEFDOWN_RATE_LIGHT || type == BuffParam.BUFFTYPE.DEFDOWN_RATE_DARK || type == BuffParam.BUFFTYPE.DEFDOWN_RATE_ALLELEMENT || type == BuffParam.BUFFTYPE.MAD_MODE || type == BuffParam.BUFFTYPE.ATTACK_SPEED_DOWN || type == BuffParam.BUFFTYPE.MOVE_SPEED_DOWN) { return(false); } return(true); }
public void Add(Character to_chara, BuffParam.BUFFTYPE type, int damage) { if (damage > 0 && (to_chara.IsCoopNone() || to_chara.IsOriginal())) { int playerId = MonoBehaviourSingleton <CoopManager> .I.coopMyClient.playerId; Add(to_chara, playerId, 0, "BUFF_" + type.ToString(), damage); } }
public void OnBuffReceive(BuffParam.BUFFTYPE type, int value, float time) { if (base.enableSend && (base.owner.IsPuppet() || base.owner.IsMirror())) { Coop_Model_CharacterBuffReceive coop_Model_CharacterBuffReceive = new Coop_Model_CharacterBuffReceive(); coop_Model_CharacterBuffReceive.id = base.owner.id; coop_Model_CharacterBuffReceive.type = (int)type; coop_Model_CharacterBuffReceive.value = value; coop_Model_CharacterBuffReceive.time = time; SendTo(base.owner.coopClientId, coop_Model_CharacterBuffReceive, false, null, null); } }
public void OnGetChargeSkillGauge(BuffParam.BUFFTYPE buffType, int buffValue, int useSkillIndex) { if (base.enableSend && base.owner.IsOriginal()) { Coop_Model_PlayerGetChargeSkillGauge coop_Model_PlayerGetChargeSkillGauge = new Coop_Model_PlayerGetChargeSkillGauge(); coop_Model_PlayerGetChargeSkillGauge.id = base.owner.id; coop_Model_PlayerGetChargeSkillGauge.buffType = (int)buffType; coop_Model_PlayerGetChargeSkillGauge.buffValue = buffValue; coop_Model_PlayerGetChargeSkillGauge.useSkillIndex = useSkillIndex; coop_Model_PlayerGetChargeSkillGauge.receive = false; SendBroadcast(coop_Model_PlayerGetChargeSkillGauge, false, null, null); } }
public void OnChargeSkillGaugeReceive(BuffParam.BUFFTYPE buffType, int buffValue, int useSkillIndex) { if (base.enableSend && base.owner.IsPuppet()) { Coop_Model_PlayerGetChargeSkillGauge coop_Model_PlayerGetChargeSkillGauge = new Coop_Model_PlayerGetChargeSkillGauge(); coop_Model_PlayerGetChargeSkillGauge.id = base.owner.id; coop_Model_PlayerGetChargeSkillGauge.buffType = (int)buffType; coop_Model_PlayerGetChargeSkillGauge.buffValue = buffValue; coop_Model_PlayerGetChargeSkillGauge.useSkillIndex = useSkillIndex; coop_Model_PlayerGetChargeSkillGauge.receive = true; SendTo(base.owner.coopClientId, coop_Model_PlayerGetChargeSkillGauge, false, null, null); } }
public void OnBuffRoutine(BuffParam.BUFFTYPE type, int value, int fromObjectID, int fromEquipIndex, int fromSkillIndex) { if (base.enableSend && base.owner.IsOriginal()) { Coop_Model_CharacterBuffRoutine coop_Model_CharacterBuffRoutine = new Coop_Model_CharacterBuffRoutine(); coop_Model_CharacterBuffRoutine.id = base.owner.id; coop_Model_CharacterBuffRoutine.type = (int)type; coop_Model_CharacterBuffRoutine.value = value; coop_Model_CharacterBuffRoutine.fromObjectID = fromObjectID; coop_Model_CharacterBuffRoutine.fromEquipIndex = fromEquipIndex; coop_Model_CharacterBuffRoutine.fromSkillIndex = fromSkillIndex; SendBroadcast(coop_Model_CharacterBuffRoutine, false, null, null); } }
public int GetExecBuffValue(BuffParam.BUFFTYPE type) { if (object.ReferenceEquals(execBuffs, null)) { return(0); } for (int i = 0; i < execBuffs.Length; i++) { InGameSettingsManager.Evolve.TypeAbstract.EvolveBuff evolveBuff = execBuffs[i]; if (evolveBuff.type == type) { return(evolveBuff.value); } } return(0); }
public void EndBuff(string enemy_name, BuffParam.BUFFTYPE type) { //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) if (IsAnnounce(type) && AnnounceStart()) { stateNameBuilder.Length = 0; stateNameBuilder.Append(enemy_name); stateNameBuilder.Append(" "); stateNameBuilder.Append(StringTable.Get(STRING_CATEGORY.BUFF, (uint)type)); stateNameBuilder.Append(StringTable.Get(STRING_CATEGORY.BUFF, 9999u)); string text = stateNameBuilder.ToString(); announce.text = text; announceEffect.text = text; announce.fontStyle = style; announceEffect.fontStyle = style; } }