Talk:In hardcore

From Kolmafia
Revision as of 21:05, 17 January 2008 by imported>Degrassi (New page: This totally needs a better example. Currently: <code> if(in_hardcore()) { buy(3,$item[hot hi mein]); } </code> This will never work in real life. If you're in hardcore, y...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This totally needs a better example.

Currently:

if(in_hardcore()) 
  {
  buy(3,$item[hot hi mein]);
  }

This will never work in real life. If you're in hardcore, you can't simply buy things like hi meins. I'd be inclined to just make it !in_hardcore(), but really it should be can_interact() for this example (which checks for ronin). The example should probably be something completely different. I'll replace it if I come up with something clean and simple. --Degrassi 13:05, 17 January 2008 (PST)