Almost the same as my version, only I use (const_cast<player&>(p).skillLevel("traps")*2),
without that extra parentheses.