runtime error: Cannot execute null.Add().
proc name: Give Perk (/mob/admin/verb/Give_Perk)
source file: Perks.dm,166
usr: Star (/mob)
src: Star (/mob)
call stack:
mob/var/UPerks[] = list()
verb
Give_Perk(mob/M in world)
set category = "Admin"
var/C = input("Choose the perk you shall give to [M].") as null|anything in Perks
if(C)
// M.UPerks+=C
M.UPerks.Add(C)
M<<"You were given [C] by [src]."
src<<"You gave [C] to [M]."
LogText("-Admin-[src.name]/[src.key] gave [M.name]/[M.key] the '[C]' perk.",0,1)
Edit: Line 166 is "M.UPerks.Add(C)"
Maybe some rephrasing? It's been awhile since I've used DM and I don't feel like opening a test environment, but I think that should solve your issue.