Skip to content

Commit

Permalink
Added a restoration button to buildport chargen chars
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Feb 7, 2024
1 parent 8c086af commit e2592e0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/awake.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2612,6 +2612,7 @@ enum {
#define OBJ_HEAVY_MILITARY_HELMET 717
#define OBJ_VINTAGE_UGLY_CHRISTMAS_SWEATER 197
#define OBJ_CHRISTMAS_2024_GIFT 196
#define OBJ_MORTAL_RESTORATION_BUTTON 10036

#define OBJ_TITLE_TO_AMERICAR 891
#define OBJ_TITLE_TO_SCORPION 892
Expand Down
5 changes: 4 additions & 1 deletion src/spec_assign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,6 @@ void assign_objects(void)
#ifdef USE_PRIVATE_CE_WORLD
ASSIGNOBJ(94331, trideo);
ASSIGNOBJ(70605, desktop);
// ASSIGNOBJ(10036, restoration_button);
ASSIGNOBJ(39799, bank);
ASSIGNOBJ(60620, bank); // Neophyte ATM
ASSIGNOBJ(94329, bank); // NERPcropolis ATM
Expand All @@ -972,6 +971,10 @@ void assign_objects(void)
perform_secret_obj_assignments();
#endif

#ifdef IS_BUILDPORT
ASSIGNOBJ(OBJ_MORTAL_RESTORATION_BUTTON, restoration_button);
#endif

ASSIGNOBJ(OBJ_SEATTLE_TAXI_SIGN, taxi_sign);
ASSIGNOBJ(OBJ_PORTLAND_TAXI_SIGN, taxi_sign);
ASSIGNOBJ(OBJ_CARIBBEAN_TAXI_SIGN, taxi_sign);
Expand Down
9 changes: 7 additions & 2 deletions src/spec_procs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4283,8 +4283,7 @@ void process_auth_room(struct char_data *ch) {
}
}

if (real_object(OBJ_NEWBIE_RADIO)>-1)
{
if (real_object(OBJ_NEWBIE_RADIO) > -1) {
struct obj_data *radio = read_object(OBJ_NEWBIE_RADIO, VIRTUAL);
GET_OBJ_VAL(radio, 0) = 8;
obj_to_char(radio, ch);
Expand All @@ -4299,6 +4298,12 @@ void process_auth_room(struct char_data *ch) {
#ifdef IS_BUILDPORT
send_to_char("You've been given 5m cash for buildport testing.\r\n", ch);
GET_NUYEN_RAW(ch) = 5000000;

if (real_object(OBJ_MORTAL_RESTORATION_BUTTON) > -1) {
struct obj_data *button = read_object(OBJ_MORTAL_RESTORATION_BUTTON, VIRTUAL);
obj_to_char(button, ch);
send_to_char("You have been given a restoration button for buildport testing. LOOK at it for instructions.\r\n", ch);
}
#endif

playerDB.SaveChar(ch);
Expand Down

0 comments on commit e2592e0

Please sign in to comment.