コード例 #1
0
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     target.damaged(new FixDamage(user,target,BasisParameter.EffectPoint,new ItemDamaged(this, target as PlayerController)));
     target.registerBuffs(new Poison(target, 1),new SpeedDown(target,10));
 }
コード例 #2
0
ファイル: RustTrap.cs プロジェクト: sgmtjp/Git-SODATERUTOWER
 public override MyCharacterController trapEffectForPlayer(MyCharacterController target)
 {
     StatusBuffBasis[] rust = { new Rust(target, typeof(WeaponBasis), EffectAmount), new Rust(target, typeof(ShieldBasis), EffectAmount) };
     target.registerBuffs(rust);
     return target;
 }