File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ public class InfiniteAmmoEvent : CustomEventsHandler
1414 /// <param name="ev">PlayerReloadingWeaponEventArgs</param>
1515 public override void OnPlayerChangedRole ( PlayerChangedRoleEventArgs ev )
1616 {
17- // SCP 和机器人不配
18- if ( ev . Player is not { IsAlive : true , IsSCP : false , IsDummy : false } ) return ;
17+ // 死人不配
18+ if ( ! ev . Player . IsAlive ) return ;
1919 // 给每种子弹类型 1 发子弹,让玩家能换弹
2020 ev . Player . SetAmmo ( ItemType . Ammo9x19 , 1 ) ;
2121 ev . Player . SetAmmo ( ItemType . Ammo12gauge , 1 ) ;
Original file line number Diff line number Diff line change 44// 有关程序集的一般信息由以下
55// 控制。更改这些特性值可修改
66// 与程序集关联的信息。
7- [ assembly: AssemblyTitle ( "Infinite Ammo Plugin " ) ]
7+ [ assembly: AssemblyTitle ( "Grant players infinite ammunition " ) ]
88[ assembly: AssemblyDescription ( "Grant players infinite ammunition" ) ]
99[ assembly: AssemblyConfiguration ( "Release" ) ]
1010[ assembly: AssemblyCompany ( "TASA-Ed Studio" ) ]
1111[ assembly: AssemblyProduct ( "Infinite Ammo Plugin" ) ]
1212[ assembly: AssemblyCopyright ( "Copyright © 2026" ) ]
1313[ assembly: AssemblyTrademark ( "TASA-Ed Studio" ) ]
14- [ assembly: AssemblyCulture ( "CN " ) ]
14+ [ assembly: AssemblyCulture ( "" ) ]
1515
1616// 将 ComVisible 设置为 false 会使此程序集中的类型
1717//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
You can’t perform that action at this time.
0 commit comments